# HG changeset patch # User Jakob Leben # Date 1397283775 25200 # Node ID e93c6ae12526f8a2a7d1a6bf42a6d1ff6ed48e50 # Parent cdafb1a438e8cb3d185baea54585fb3c833b8e4f SingleColourLayer: do not try to apply invalid colour property diff -r cdafb1a438e8 -r e93c6ae12526 layer/SingleColourLayer.cpp --- a/layer/SingleColourLayer.cpp Mon Apr 07 10:47:15 2014 +0100 +++ b/layer/SingleColourLayer.cpp Fri Apr 11 23:22:55 2014 -0700 @@ -307,6 +307,9 @@ int colour = ColourDatabase::getInstance()->putStringValues (colourName, colourSpec, darkbg); + if (colour == -1) + return; + m_colourExplicitlySet = true; if (m_colour != colour) {