~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/livarot/Path.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
908
908
    return g_strdup (os.str().c_str());
909
909
}
910
910
 
 
911
// Find out if the segment that corresponds to 'piece' is a straight line
 
912
bool Path::IsLineSegment(int piece)
 
913
{
 
914
    if (piece < 0 || piece >= int(descr_cmd.size())) {
 
915
        return false;
 
916
    }
 
917
    
 
918
    PathDescr const *theD = descr_cmd[piece];
 
919
    int const typ = theD->getType();
 
920
    
 
921
    return (typ == descr_lineto);
 
922
}
 
923
 
 
924
 
911
925
/*
912
926
  Local Variables:
913
927
  mode:c++