From 413129e20780cc42f1c7076974b123c08ba19093 Mon Sep 17 00:00:00 2001 From: Louai Al-Khanji Date: Thu, 23 Jan 2014 09:32:15 +0200 Subject: [PATCH] Fix Q_ASSERT in direct2d qpa plugin When calling end the refcount should be greater than zero, as calls to begin/end should match. Change-Id: I49adbf6f9f1c21cb60985ba4e02574e6c0841b74 Reviewed-by: Friedemann Kleint --- .../platforms/direct2d/qwindowsdirect2ddevicecontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp b/src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp index 3ff4c9e636..27e94e4be4 100644 --- a/src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp +++ b/src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp @@ -80,7 +80,7 @@ public: bool end() { Q_ASSERT(deviceContext); - Q_ASSERT(refCount >= 0); + Q_ASSERT(refCount > 0); bool success = true; refCount--;