summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96fd9a9)
raw | patch | inline | side by side (parent: 96fd9a9)
author | mfloryan <mfloryan@users.sourceforge.net> | |
Thu, 3 Apr 2008 15:47:17 +0000 (15:47 +0000) | ||
committer | mfloryan <mfloryan@users.sourceforge.net> | |
Thu, 3 Apr 2008 15:47:17 +0000 (15:47 +0000) |
src/document.cpp | patch | blob | history |
diff --git a/src/document.cpp b/src/document.cpp
index e537e43de18934769bae79c9b36bba2c08d00e98..92aad942d7687e7f8d24cad35a25712962774d8b 100644 (file)
--- a/src/document.cpp
+++ b/src/document.cpp
#include "transf_mat_3x4.h"
-#define A4_WIDTH_STR "210mm"
-#define A4_HEIGHT_STR "297mm"
-
#define SP_DOCUMENT_UPDATE_PRIORITY (G_PRIORITY_HIGH_IDLE - 1)
/* fixme: Again, I moved these here to allow version determining in ::build (Lauris) */
/* Quick hack 2 - get default image size into document */
- if (!rroot->attribute("width")) rroot->setAttribute("width", A4_WIDTH_STR);
- if (!rroot->attribute("height")) rroot->setAttribute("height", A4_HEIGHT_STR);
+ if (!rroot->attribute("width")) rroot->setAttribute("width", "100%");
+ if (!rroot->attribute("height")) rroot->setAttribute("height", "100%");
/* End of quick hack 2 */
/* Quick hack 3 - Set uri attributes */