X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvOverlayPanel.cxx;fp=vv%2FvvOverlayPanel.cxx;h=28d893991556a77eed1277aa8e4738989040428b;hb=390aea3ee689bd8a605e07fe5a8fde85bd4124f5;hp=68356bfd2df1d91d1fc7029d20d5e6afe331d44b;hpb=b723c3573a7b923bda4a8113159870b9fadabad2;p=clitk.git diff --git a/vv/vvOverlayPanel.cxx b/vv/vvOverlayPanel.cxx index 68356bf..28d8939 100644 --- a/vv/vvOverlayPanel.cxx +++ b/vv/vvOverlayPanel.cxx @@ -250,7 +250,8 @@ void vvOverlayPanel::VFColorChangeRequest() QColor color(vfColorButton->palette().color(QPalette::Background)); color = QColorDialog::getColor(color, this, "Choose the new color of the vector field"); //vfColorButton->palette().setColor(QPalette::Background, color); SR: Not working? - vfColorButton->setStyleSheet("* { background-color: " + color.name() + "; border: 0px }"); + if (color.isValid()) + vfColorButton->setStyleSheet("* { background-color: " + color.name() + "; border: 0px }"); this->setVFProperty(); }