From c400a5f9267a81c89374adf93c5a12e70720f06c Mon Sep 17 00:00:00 2001 From: enk Date: Thu, 26 May 2005 13:52:51 +0000 Subject: [PATCH] Fixed method ReadData(...) where was incorrect reading color for LabelTextProperty --- src/VISUGUI/VisuGUI_CubeAxesDlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2