diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-04-03 03:25:05 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-04-03 03:25:05 +0000 |
| commit | 331723c687c97a0a6d886a80b0bd2f5d7dbfb953 (patch) | |
| tree | f0c53a4086257c7bd672d2167ff32470a8446d84 /src/flood-context.cpp | |
| parent | Fix spray tool (diff) | |
| download | inkscape-331723c687c97a0a6d886a80b0bd2f5d7dbfb953.tar.gz inkscape-331723c687c97a0a6d886a80b0bd2f5d7dbfb953.zip | |
Fix tweak and paint bucket tools
(bzr r9281.1.6)
Diffstat (limited to 'src/flood-context.cpp')
| -rw-r--r-- | src/flood-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp index 612ae1cfc..910b5dd80 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -798,7 +798,7 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even unsigned int height = (int)ceil(screen.height() * zoom_scale * padding); Geom::Point origin(screen.min()[Geom::X], - sp_document_height(document) - screen.height() - screen.min()[Geom::Y]); + screen.min()[Geom::Y]); origin[Geom::X] = origin[Geom::X] + (screen.width() * ((1 - padding) / 2)); origin[Geom::Y] = origin[Geom::Y] + (screen.height() * ((1 - padding) / 2)); @@ -905,7 +905,7 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even } for (unsigned int i = 0; i < fill_points.size(); i++) { - Geom::Point pw = Geom::Point(fill_points[i][Geom::X] / zoom_scale, sp_document_height(document) + (fill_points[i][Geom::Y] / zoom_scale)) * affine; + Geom::Point pw = Geom::Point(fill_points[i][Geom::X] / zoom_scale, (fill_points[i][Geom::Y] / zoom_scale)) * affine; pw[Geom::X] = (int)MIN(width - 1, MAX(0, pw[Geom::X])); pw[Geom::Y] = (int)MIN(height - 1, MAX(0, pw[Geom::Y])); |
