From 74cad3c13406029a8f278f524f20b80abaab0a7d Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 16 Dec 2011 10:26:27 +0000 Subject: [PATCH] + fixes in ortho view (j-dowsett) git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5313 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Drawing/Gui/TaskOrthoViews.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Drawing/Gui/TaskOrthoViews.cpp b/src/Mod/Drawing/Gui/TaskOrthoViews.cpp index 94c60a771..e34184eec 100644 --- a/src/Mod/Drawing/Gui/TaskOrthoViews.cpp +++ b/src/Mod/Drawing/Gui/TaskOrthoViews.cpp @@ -420,7 +420,7 @@ void TaskOrthoViews::pagesize(std::string& page_template) found = line.find("width="); if (found != string::npos) { - temp_line = line.substr(10); + temp_line = line.substr(7+found); found = temp_line.find("\""); temp_line = temp_line.substr(0,found); stringstream num_str(temp_line); @@ -438,7 +438,7 @@ void TaskOrthoViews::pagesize(std::string& page_template) found = line.find("height="); if (found != string::npos) { - temp_line = line.substr(11); + temp_line = line.substr(8+found); found = temp_line.find("\""); temp_line = temp_line.substr(0,found); stringstream num_str_2(temp_line);