- anOp.Split( doc(), aName.toLatin1().data(), aMainPolyline, aToolPolyline );
+ {
+ bool isIntersected = false;
+ anOp.Split( doc(), aMainPolyline, aToolPolyline, aTolerance, isIntersected);
+
+ if (!isIntersected)
+ {
+ const QString aTitle = tr("SPLIT_POLYLINE_BY_TOOL_WARNING_TITLE");
+ const QString aMsg = tr("SPLIT_POLYLINE_BY_TOOL_WARNING_MSG");
+ SUIT_MessageBox::warning(module()->getApp()->desktop(), aTitle, aMsg);
+ }