diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2011-06-21 06:54:50 +0000 |
|---|---|---|
| committer | Felipe C. da S. Sanches <juca@members.fsf.org> | 2011-06-21 06:54:50 +0000 |
| commit | 7743b3270e865679614e2e88fc75110af61f06ee (patch) | |
| tree | fc428e66ce02c691e652819689255009fdaf5f54 /src/measure-context.cpp | |
| parent | refactoring measure tool code (diff) | |
| download | inkscape-7743b3270e865679614e2e88fc75110af61f06ee.tar.gz inkscape-7743b3270e865679614e2e88fc75110af61f06ee.zip | |
address sissue with measure tool described here:
https://bugs.launchpad.net/inkscape/+bug/796451/comments/2
(bzr r10328)
Diffstat (limited to 'src/measure-context.cpp')
| -rw-r--r-- | src/measure-context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/measure-context.cpp b/src/measure-context.cpp index 72759bcb0..75cb0d589 100644 --- a/src/measure-context.cpp +++ b/src/measure-context.cpp @@ -129,7 +129,10 @@ static gint sp_measure_context_item_handler(SPEventContext *event_context, SPIte bool GeomPointSortPredicate(const Geom::Point& p1, const Geom::Point& p2) { - return p1[Geom::Y] < p2[Geom::Y]; + if (p1[Geom::Y] == p2[Geom::Y]) + return p1[Geom::X] < p2[Geom::X]; + else + return p1[Geom::Y] < p2[Geom::Y]; } void calculate_intersections(SPDesktop *desktop, SPItem* item, Geom::PathVector *lineseg, SPCurve *curve, std::vector<Geom::Point> *intersections){ |
