//function : SetSelectionMode
//purpose :
//=======================================================================
-void TDataXtd_Presentation::SetSelectionMode(const Standard_Integer theSelectionMode)
+void TDataXtd_Presentation::SetSelectionMode(const Standard_Integer theSelectionMode, const Standard_Boolean theTransaction)
{
if (! myHasOwnSelectionMode || mySelectionMode != theSelectionMode)
{
- Backup();
+ if (theTransaction)
+ Backup();
mySelectionMode = theSelectionMode;
myHasOwnSelectionMode = Standard_True;
}