"src/array/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "ed2e5409113ea65a6c395a2d2d70c06b59b7e80a"
Commit af0cf84f authored by Davis King's avatar Davis King
Browse files

Fixed a bug in the image_window and image_display GUI tools which caused them

to not redraw overlay lines correctly in certain cases involving non-default
zoom levels.
parent d1295d13
...@@ -5794,10 +5794,8 @@ namespace dlib ...@@ -5794,10 +5794,8 @@ namespace dlib
// push this new overlay into our overlay vector // push this new overlay into our overlay vector
overlay_lines.push_back(overlay); overlay_lines.push_back(overlay);
const point origin(total_rect().tl_corner());
// make the parent window redraw us now that we changed the overlay // make the parent window redraw us now that we changed the overlay
parent.invalidate_rectangle(rectangle(overlay.p1+origin, overlay.p2+origin)); parent.invalidate_rectangle(get_rect_on_screen(rectangle(overlay.p1, overlay.p2)));
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment