Skip to content

Commit

Permalink
always call restore if we called save beforehand
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19705 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 25, 2018
1 parent 1b4367a commit 41fc6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/client/gtk_base/cairo_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def cairo_paint_from_source(self, set_source_fn, source, x, y, w, h, options):
gc.rectangle(0, 0, w, h)
set_source_fn(gc, source, 0, 0)
gc.paint()
if self.paint_box_line_width and options:
if self.paint_box_line_width:
gc.restore()
encoding = options.get("encoding")
if encoding:
if options and encoding:
color = get_paint_box_color(encoding)
gc.set_line_width(self.paint_box_line_width)
gc.set_source_rgba(*color)
Expand Down

0 comments on commit 41fc6e3

Please sign in to comment.