Salome HOME
patch for crashes after colors redesign
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverOp.cxx
index 76f4aec987d77a57735ba75543c774864036daa8..205b14864ba343c341e5262366a834e915cd939c 100644 (file)
@@ -281,8 +281,8 @@ void HYDROGUI_LandCoverOp::onCreatePreview( const QStringList& thePolylineNames
 
   if ( aViewManager && myPreviewPrs )
   {
-    QColor aFillingColor = myEditedObject->DefaultFillingColor();
-    QColor aBorderColor = myEditedObject->DefaultBorderColor();
+    QColor aFillingColor = Qt::magenta;
+    QColor aBorderColor = Qt::transparent;
     if ( !myEditedObject.IsNull() ) {
       aFillingColor = myEditedObject->GetFillingColor();
       aBorderColor = myEditedObject->GetBorderColor();