From c6adfb8a2f2aa1040247563cb663193d36736218 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 20 May 2008 09:11:52 +0000 Subject: [PATCH] NPAL19051: Part of code is moved from Splot2d_Viewer::onCloneView() slot to Pplot2d_Viewer::onCloneView() slot --- src/SPlot2d/SPlot2d_ViewModel.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SPlot2d/SPlot2d_ViewModel.cxx b/src/SPlot2d/SPlot2d_ViewModel.cxx index 527a8a135..bb17e1c63 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.cxx +++ b/src/SPlot2d/SPlot2d_ViewModel.cxx @@ -363,7 +363,8 @@ SPlot2d_Curve* SPlot2d_Viewer::getCurveByIO( const Handle(SALOME_InteractiveObje */ void SPlot2d_Viewer::onCloneView( Plot2d_ViewFrame* clonedVF, Plot2d_ViewFrame* newVF ) { - if( !clonedVF || !newVF ) + // this code is moved on the level of base class + /*if( !clonedVF || !newVF ) return; // 1) Copy all properties of view @@ -379,7 +380,9 @@ void SPlot2d_Viewer::onCloneView( Plot2d_ViewFrame* clonedVF, Plot2d_ViewFrame* for( ; anIt!=aLast; anIt++ ) if( clonedVF->isVisible( *anIt ) ) newVF->displayCurve( *anIt, false ); - newVF->Repaint(); + newVF->Repaint();*/ + + Plot2d_Viewer::onCloneView( clonedVF, newVF ); } /*! -- 2.39.2