Mercurial > hg > svgui
changeset 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 | cdafb1a438e8 |
children | 8b614632568c |
files | layer/SingleColourLayer.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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) {