mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 09:32:04 +05:00
Additional fix for Windows compatibility.
This commit is contained in:
parent
776b61d3bb
commit
60d195f9bf
@ -169,7 +169,11 @@ void GEOMToolsGUI_MarkerDlg::setStandardMarker( GEOM::marker_type type, GEOM::ma
|
|||||||
myTypeGroup->button( 0 )->setChecked( true );
|
myTypeGroup->button( 0 )->setChecked( true );
|
||||||
myWGStack->setCurrentIndex( 0 );
|
myWGStack->setCurrentIndex( 0 );
|
||||||
myStdTypeCombo->setCurrentIndex( (int)type - 1 );
|
myStdTypeCombo->setCurrentIndex( (int)type - 1 );
|
||||||
|
#ifdef WNT
|
||||||
|
int asize = max( (int)GEOM::MS_10, min( (int)GEOM::MS_70, (int)size ) );
|
||||||
|
#else
|
||||||
int asize = std::max( (int)GEOM::MS_10, std::min( (int)GEOM::MS_70, (int)size ) );
|
int asize = std::max( (int)GEOM::MS_10, std::min( (int)GEOM::MS_70, (int)size ) );
|
||||||
|
#endif
|
||||||
myStdScaleCombo->setCurrentIndex( asize-1 );
|
myStdScaleCombo->setCurrentIndex( asize-1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -309,6 +313,9 @@ void GEOMToolsGUI_MarkerDlg::init()
|
|||||||
setStandardMarker( aType, aSize );
|
setStandardMarker( aType, aSize );
|
||||||
else if ( aType == GEOM::MT_USER )
|
else if ( aType == GEOM::MT_USER )
|
||||||
setCustomMarker( aTexture );
|
setCustomMarker( aTexture );
|
||||||
|
else
|
||||||
|
setStandardMarker((GEOM::marker_type)(resMgr->integerValue("Geometry", "type_of_marker", (int)Aspect_TOM_PLUS) + 1),
|
||||||
|
(GEOM::marker_size)(resMgr->integerValue("Geometry", "marker_scale", 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GEOMToolsGUI_MarkerDlg::addTexture( int id, bool select ) const
|
void GEOMToolsGUI_MarkerDlg::addTexture( int id, bool select ) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user