]> OCCT Git - occt-copy.git/commitdiff
0032125: Application Framework, OCAF - need to have adequate message if document... CR32125
authorvro <vladislav.romashko@opencascade.com>
Mon, 19 Jul 2021 18:11:50 +0000 (21:11 +0300)
committervro <vladislav.romashko@opencascade.com>
Mon, 19 Jul 2021 18:11:50 +0000 (21:11 +0300)
Modifications:
- XDEDRAW.cxx: processed a new enumeration value PCDM_SS_UnrecognizedFormat by saveDoc draw-command.

src/XDEDRAW/XDEDRAW.cxx

index bb9ecf0a79b419851ea9913ab83fbae205193bd4..184db58f78336460a95e3d21582c32215392d455 100644 (file)
@@ -192,6 +192,9 @@ static Standard_Integer saveDoc (Draw_Interpretor& di, Standard_Integer argc, co
     case PCDM_SS_UserBreak:
       di << "Storage error: user break\n";
       break;
+    case PCDM_SS_UnrecognizedFormat:
+      di << "Storage error: unrecognized document storage format " << D->StorageFormat() << "\n";
+      break;
   }
 
   return 0;