X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvOverlayPanel.cxx;h=28d893991556a77eed1277aa8e4738989040428b;hb=2252cf3b3bb5c5389d757b4e9e503e011b0489d0;hp=68356bfd2df1d91d1fc7029d20d5e6afe331d44b;hpb=4db6b30d5a0c5b238c5561360265884c5e982df8;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(); }