From bb517a90500a7f2faa3e9a8044e483210080f646 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 20 Jun 2008 06:52:53 +0000 Subject: [PATCH] Correct switch of interaction style --- src/SVTK/SVTK_MainWindow.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_MainWindow.cxx b/src/SVTK/SVTK_MainWindow.cxx index b9ca147a7..8e84221ef 100644 --- a/src/SVTK/SVTK_MainWindow.cxx +++ b/src/SVTK/SVTK_MainWindow.cxx @@ -795,7 +795,9 @@ void SVTK_MainWindow::onSwitchInteractionStyle(bool theOn) } } else { - PopInteractorStyle(); + // pop only key free style + if ( GetInteractorStyle() == myKeyFreeInteractorStyle.GetPointer() ) + PopInteractorStyle(); } // update action state if method is called outside -- 2.39.2