From d87b2bf231461b9bb1a42dbbf904366b78e523e5 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 11 Jan 2013 19:48:50 +0000 Subject: Selection disapear - SL #4375 If there are a selection already finished, should be painted, when draw the selected area. Redraw can be triggered by events externals to what the user do, like canvas scroll due to open or close subtoolbars, or a window opened over the canvas (ObjectChooser) Signed-off-by: Gonzalo Odiard --- (limited to 'Desenho.py') diff --git a/Desenho.py b/Desenho.py index 50ac4fa..0420f51 100644 --- a/Desenho.py +++ b/Desenho.py @@ -681,11 +681,6 @@ class Desenho: widget.oldy = coords[1] new_x, new_y = x + dx, y + dy - widget.temp_ctx.save() - widget.temp_ctx.translate(new_x, new_y) - widget.temp_ctx.set_source_surface(selection_surface) - widget.temp_ctx.paint() - widget.temp_ctx.restore() widget.set_selection_start(new_x, new_y) widget.queue_draw() -- cgit v0.9.1