From: dmv Date: Wed, 11 Mar 2009 13:41:32 +0000 (+0000) Subject: IPAL20920 Regressions of "Line Width" properties X-Git-Tag: V4_1_0_maintainance_20090313~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c21a71fd43062bfad2273167caa4c898f4f19ad;p=modules%2Fvisu.git IPAL20920 Regressions of "Line Width" properties --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index b8c6ffbc..51d3d14f 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1211,11 +1211,12 @@ VisuGUI VISU_ActorBase* anActorBase = NULL; VISU::Prs3d_i* aPrs3d = NULL; SVTK_ViewWindow* aViewWindow = NULL; - float oldlwid; + float oldlwid = 1; bool isPrs3d = false; if (GetPrs3dSelectionInfo(this, aPrs3d, aViewWindow, anActor)) { isPrs3d = true; + oldlwid = anActor->GetLineWidth(); } else { aViewWindow = GetActiveViewWindow(this);