Mercurial > hg > svgui
diff layer/SingleColourLayer.cpp @ 767:e93c6ae12526
SingleColourLayer: do not try to apply invalid colour property
author | Jakob Leben <jakob.leben@gmail.com> |
---|---|
date | Fri, 11 Apr 2014 23:22:55 -0700 |
parents | 1a0dfcbffaf1 |
children | 8b614632568c |
line wrap: on
line diff
--- 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) {