From: enk Date: Thu, 26 May 2005 13:52:51 +0000 (+0000) Subject: Fixed method ReadData(...) X-Git-Tag: JFA_MERGE_TO_3_0_0__2005-07-07~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c400a5f9267a81c89374adf93c5a12e70720f06c;p=modules%2Fvisu.git Fixed method ReadData(...) where was incorrect reading color for LabelTextProperty --- diff --git a/src/VISUGUI/VisuGUI_CubeAxesDlg.cxx b/src/VISUGUI/VisuGUI_CubeAxesDlg.cxx index baefe0cb..46fe1073 100755 --- a/src/VISUGUI/VisuGUI_CubeAxesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CubeAxesDlg.cxx @@ -273,7 +273,7 @@ bool VisuGUI_AxisWg::ReadData( vtkAxisActor2D* theActor ) { float c[ 3 ]; aLabelsProp->GetColor( c ); - aLabelsColor.setRgb( (int)( c[ 0 ] * 255 ), (int)( c[ 0 ] * 255 ), (int)( c[ 0 ] * 255 ) ); + aLabelsColor.setRgb( (int)( c[ 0 ] * 255 ), (int)( c[ 1 ] * 255 ), (int)( c[ 2 ] * 255 ) ); aLabelsFontFamily = aLabelsProp->GetFontFamily(); isLabelsBold = aLabelsProp->GetBold() ? true : false; isLabelsItalic = aLabelsProp->GetItalic() ? true : false;