diff options
| author | Kim Maxim (fixer21k) <> | 2015-01-25 10:40:42 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2015-01-25 10:40:42 +0000 |
| commit | 7185358d8867a5040b28fb81df369e6a99610d09 (patch) | |
| tree | f92a7fbf230c7276cfb752f15136d4c154aa94f9 /src/ui/tools/flood-tool.cpp | |
| parent | Documentation. K&M reference not available in German. (diff) | |
| download | inkscape-7185358d8867a5040b28fb81df369e6a99610d09.tar.gz inkscape-7185358d8867a5040b28fb81df369e6a99610d09.zip | |
Fix for bug #1130348 (Paint bucket filling multiple regions crashes when scrolling).
Fixed bugs:
- https://launchpad.net/bugs/1130348
(bzr r13873)
Diffstat (limited to 'src/ui/tools/flood-tool.cpp')
| -rw-r--r-- | src/ui/tools/flood-tool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/flood-tool.cpp b/src/ui/tools/flood-tool.cpp index 82057f483..e4c4e855d 100644 --- a/src/ui/tools/flood-tool.cpp +++ b/src/ui/tools/flood-tool.cpp @@ -621,7 +621,7 @@ static ScanlineCheckResult perform_bitmap_scanline_check(std::deque<Geom::Point> bool currently_painting_top = false; bool currently_painting_bottom = false; - unsigned int top_ty = bci.y - 1; + unsigned int top_ty = (bci.y > 0) ? bci.y - 1 : 0; unsigned int bottom_ty = bci.y + 1; bool can_paint_top = (top_ty > 0); |
