From: asl Date: Thu, 15 Oct 2015 05:17:52 +0000 (+0300) Subject: patch for crashes after colors redesign X-Git-Tag: v1.5~116 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=de251bfa3d05607dc3bf70194c3fec6a4bcefb9e;p=modules%2Fhydro.git patch for crashes after colors redesign --- diff --git a/src/HYDROGUI/HYDROGUI_ChannelOp.cxx b/src/HYDROGUI/HYDROGUI_ChannelOp.cxx index 958d9b8a..e052d7d0 100644 --- a/src/HYDROGUI/HYDROGUI_ChannelOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ChannelOp.cxx @@ -267,8 +267,8 @@ void HYDROGUI_ChannelOp::onCreatePreview() { myPreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() ); - QColor aFillingColor = myEditedObject->DefaultFillingColor(); - QColor aBorderColor = myEditedObject->DefaultBorderColor(); + QColor aFillingColor = Qt::blue; + QColor aBorderColor = Qt::transparent; if ( !myEditedObject.IsNull() ) { aFillingColor = myEditedObject->GetFillingColor(); diff --git a/src/HYDROGUI/HYDROGUI_ImmersibleZoneOp.cxx b/src/HYDROGUI/HYDROGUI_ImmersibleZoneOp.cxx index 2e1c844d..3af761cb 100644 --- a/src/HYDROGUI/HYDROGUI_ImmersibleZoneOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ImmersibleZoneOp.cxx @@ -242,8 +242,8 @@ void HYDROGUI_ImmersibleZoneOp::onCreatePreview( const QString& thePolylineName if ( aViewManager && myPreviewPrs ) { - QColor aFillingColor = myEditedObject->DefaultFillingColor(); - QColor aBorderColor = myEditedObject->DefaultBorderColor(); + QColor aFillingColor = Qt::darkBlue; + QColor aBorderColor = Qt::transparent; if ( !myEditedObject.IsNull() ) { aFillingColor = myEditedObject->GetFillingColor(); aBorderColor = myEditedObject->GetBorderColor(); diff --git a/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx b/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx index 76f4aec9..205b1486 100644 --- a/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx +++ b/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx @@ -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(); diff --git a/src/HYDROGUI/HYDROGUI_StreamOp.cxx b/src/HYDROGUI/HYDROGUI_StreamOp.cxx index c7070ef2..5835dc95 100755 --- a/src/HYDROGUI/HYDROGUI_StreamOp.cxx +++ b/src/HYDROGUI/HYDROGUI_StreamOp.cxx @@ -291,8 +291,8 @@ void HYDROGUI_StreamOp::createPreview() { myPreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() ); - QColor aFillingColor = myEditedObject->DefaultFillingColor(); - QColor aBorderColor = myEditedObject->DefaultBorderColor(); + QColor aFillingColor = Qt::green; + QColor aBorderColor = Qt::transparent; if ( !myEditedObject.IsNull() ) { aFillingColor = myEditedObject->GetFillingColor();