DXF, DWG: allow undoing an import.
This commit is contained in:
parent
17f7a7b467
commit
c838158e04
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user