lib/shoes/swt/text_block/painter.rb in shoes-swt-4.0.0.pre4 vs lib/shoes/swt/text_block/painter.rb in shoes-swt-4.0.0.pre5
- old
+ new
@@ -18,10 +18,13 @@
return if @dsl.hidden? ||
@dsl.gui.segments.nil? ||
@dsl.gui.segments.empty?
reset_graphics_context(paint_event.gc)
- @dsl.gui.segments.paint_control(paint_event.gc)
+
+ clip_context_to(paint_event.gc, @dsl.parent) do |gc|
+ @dsl.gui.segments.paint_control(gc)
+ end
end
end
end
end
end