DXF, DWG: allow undoing an import.

This commit is contained in:
EvilSpirit 2016-05-20 11:53:00 +06:00 committed by whitequark
parent 17f7a7b467
commit c838158e04

View File

@ -902,6 +902,7 @@ public:
}; };
void ImportDxf(const std::string &filename) { void ImportDxf(const std::string &filename) {
SS.UndoRemember();
dxfRW dxf(filename.c_str()); dxfRW dxf(filename.c_str());
DxfReadInterface interface; DxfReadInterface interface;
interface.clearBlockTransform(); interface.clearBlockTransform();
@ -915,6 +916,7 @@ void ImportDxf(const std::string &filename) {
} }
void ImportDwg(const std::string &filename) { void ImportDwg(const std::string &filename) {
SS.UndoRemember();
dwgR dwg(filename.c_str()); dwgR dwg(filename.c_str());
DxfReadInterface interface; DxfReadInterface interface;
interface.clearBlockTransform(); interface.clearBlockTransform();