summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
index b11e05d8b..c9595a118 100644
--- a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -1308,6 +1308,8 @@ void GraphicsContext::endPlatformTransparencyLayer()
while ( ! m_data->layers.top()->alphaMask.isNull() ){
--m_data->layers.top()->saveCounter;
popTransparencyLayerInternal();
+ if (m_data->layers.isEmpty())
+ return;
}
TransparencyLayer* layer = m_data->layers.pop();
--m_data->layerCount; // see the comment for layerCount