From 9f40bf1da9952f56dff6f55b2fc54fb8bce442b8 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 10 Feb 2015 14:05:14 -0200 Subject: [PATCH] Drawing: reset the default template to the classic one --- src/Mod/Drawing/Gui/Command.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/Drawing/Gui/Command.cpp b/src/Mod/Drawing/Gui/Command.cpp index 53a37bd45..69e373f3c 100644 --- a/src/Mod/Drawing/Gui/Command.cpp +++ b/src/Mod/Drawing/Gui/Command.cpp @@ -175,8 +175,11 @@ Gui::Action * CmdDrawingNewPage::createAction(void) a->setProperty("Template", dir.absoluteFilePath(dir[i])); if (id == 3) { - defaultAction = a; - defaultId = pcAction->actions().size() - 1; + if (!defaultAction) { + // set the first found A3 (A3_Landscape) as default + defaultAction = a; + defaultId = pcAction->actions().size() - 1; + } } } }