From: vro Date: Mon, 19 Jul 2021 18:11:50 +0000 (+0300) Subject: 0032125: Application Framework, OCAF - need to have adequate message if document... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=01b392363e6e525a62af078def15e7521d5b3d5b;p=occt-copy.git 0032125: Application Framework, OCAF - need to have adequate message if document cannot be saved due to unrecognized format Modifications: - XDEDRAW.cxx: processed a new enumeration value PCDM_SS_UnrecognizedFormat by saveDoc draw-command. --- diff --git a/src/XDEDRAW/XDEDRAW.cxx b/src/XDEDRAW/XDEDRAW.cxx index bb9ecf0a79..184db58f78 100644 --- a/src/XDEDRAW/XDEDRAW.cxx +++ b/src/XDEDRAW/XDEDRAW.cxx @@ -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;