]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL20920 Regressions of "Line Width" properties
authordmv <dmv@opencascade.com>
Wed, 11 Mar 2009 13:41:32 +0000 (13:41 +0000)
committerdmv <dmv@opencascade.com>
Wed, 11 Mar 2009 13:41:32 +0000 (13:41 +0000)
src/VISUGUI/VisuGUI.cxx

index b8c6ffbc115e4c00915d7ba37ba76d9695e100ad..51d3d14ff35a0b9fb7026a602b487993c642ced7 100644 (file)
@@ -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<SVTK_ViewWindow>(this);