comparison 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
comparison
equal deleted inserted replaced
763:cdafb1a438e8 767:e93c6ae12526
305 QString darkbg = attributes.value("darkBackground"); 305 QString darkbg = attributes.value("darkBackground");
306 306
307 int colour = ColourDatabase::getInstance()->putStringValues 307 int colour = ColourDatabase::getInstance()->putStringValues
308 (colourName, colourSpec, darkbg); 308 (colourName, colourSpec, darkbg);
309 309
310 if (colour == -1)
311 return;
312
310 m_colourExplicitlySet = true; 313 m_colourExplicitlySet = true;
311 314
312 if (m_colour != colour) { 315 if (m_colour != colour) {
313 316
314 #ifdef DEBUG_COLOUR_SELECTION 317 #ifdef DEBUG_COLOUR_SELECTION