mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 18:18:35 +05:00
Change backgroundImageFile() to background() due to the introduction of gradiant background in GUI.
This commit is contained in:
parent
0c352ca06a
commit
7c19c74cc8
@ -1528,9 +1528,9 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con
|
|||||||
{
|
{
|
||||||
MESSAGE("EntityGUI_SketcherDlg::OnPointSelected")
|
MESSAGE("EntityGUI_SketcherDlg::OnPointSelected")
|
||||||
|
|
||||||
SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow();
|
SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow();
|
||||||
OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
|
OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
|
||||||
QString theImgFileName = vp->backgroundImageFilename();
|
Qtx::BackgroundData bg = vp->background();
|
||||||
|
|
||||||
double x, y;
|
double x, y;
|
||||||
x = y = 0;
|
x = y = 0;
|
||||||
@ -1549,7 +1549,7 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con
|
|||||||
gp_Pnt aTrsfPnt;
|
gp_Pnt aTrsfPnt;
|
||||||
GEOMBase::VertexToPoint( aShape, 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
|
// -> apply automatically
|
||||||
|
|
||||||
if ( getPnt1ConstructorId() == 0 ){ // Relative selection mode
|
if ( getPnt1ConstructorId() == 0 ){ // Relative selection mode
|
||||||
|
Loading…
Reference in New Issue
Block a user