[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Boxygen-gtk=5D_src=3A_Added_missing_check_on_context?=
From: Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date: 2011-05-22 18:58:34
Message-ID: 20110522185834.CCD44A60A4 () git ! kde ! org
[Download RAW message or body]
Git commit a5586831968554b287e15ea0637233774cd4f047 by Hugo Pereira Da Costa.
Committed on 22/05/2011 at 20:58.
Pushed by hpereiradacosta into branch 'master'.
Added missing check on context destruction.
CCBUG: 273851
M +2 -1 src/oxygenstyle.cpp
http://commits.kde.org/oxygen-gtk/a5586831968554b287e15ea0637233774cd4f047
diff --git a/src/oxygenstyle.cpp b/src/oxygenstyle.cpp
index 5d3b595..9de0ca4 100644
--- a/src/oxygenstyle.cpp
+++ b/src/oxygenstyle.cpp
@@ -280,7 +280,8 @@ namespace Oxygen
cairo_set_source(context,base);
cairo_rectangle(context,x,y,w,h);
cairo_fill(context);
- cairo_destroy(context);
+ if( needToDestroyContext ) cairo_destroy(context);
+ else cairo_restore(context);
return;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic