From 7c19c74cc88e42301e065ecee9e7bb01863a66fb Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 15 Feb 2012 13:23:34 +0000 Subject: [PATCH] Change backgroundImageFile() to background() due to the introduction of gradiant background in GUI. --- src/EntityGUI/EntityGUI_SketcherDlg.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.cxx b/src/EntityGUI/EntityGUI_SketcherDlg.cxx index e3ec23f22..b39843b47 100644 --- a/src/EntityGUI/EntityGUI_SketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_SketcherDlg.cxx @@ -1528,9 +1528,9 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con { MESSAGE("EntityGUI_SketcherDlg::OnPointSelected") - SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow(); - OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort(); - QString theImgFileName = vp->backgroundImageFilename(); + SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow(); + OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort(); + Qtx::BackgroundData bg = vp->background(); double x, y; x = y = 0; @@ -1549,7 +1549,7 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con gp_Pnt aTrsfPnt; GEOMBase::VertexToPoint( aShape, aTrsfPnt ); - autoApply = ( (getPnt2ConstructorId() == 1) && (!theImgFileName.isEmpty()) ); // If no additional argument needed after selection and there is a backgroundimage + autoApply = ( (getPnt2ConstructorId() == 1) && (!bg.isValid()) ); // If no additional argument needed after selection and there is a backgroundimage // -> apply automatically if ( getPnt1ConstructorId() == 0 ){ // Relative selection mode -- 2.39.2