From 651b367a2e01f918435d829394baff45537f6b91 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 24 Oct 2013 17:03:01 +0200 Subject: fix bug "some of the locale-based templates cause objects to be resized when default units are changed" #1236257 Fixed bugs: - https://launchpad.net/bugs/1236257 (bzr r12717) --- src/document.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/document.h') diff --git a/src/document.h b/src/document.h index 948b5b867..6982e4c4f 100644 --- a/src/document.h +++ b/src/document.h @@ -47,6 +47,7 @@ namespace Inkscape { class Node; } namespace Util { + class Unit; class Quantity; } } @@ -227,6 +228,7 @@ public: SPDocument *doRef(); SPDocument *doUnref(); + Inkscape::Util::Unit const* getDefaultUnit(); Inkscape::Util::Quantity getWidth() const; Inkscape::Util::Quantity getHeight() const; Geom::Point getDimensions() const; -- cgit v1.2.3 From 9c27ef4d920ac6b05cd052cf48fa1d0b85b194b9 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 24 Oct 2013 18:04:08 +0200 Subject: try to add some const-correctness (bzr r12719) --- src/document.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/document.h') diff --git a/src/document.h b/src/document.h index 6982e4c4f..0977fc7a8 100644 --- a/src/document.h +++ b/src/document.h @@ -124,6 +124,7 @@ public: /** Returns our SPRoot */ SPRoot *getRoot() { return root; } + SPRoot const *getRoot() const { return root; } Inkscape::XML::Node *getReprRoot() { return rroot; } @@ -228,7 +229,7 @@ public: SPDocument *doRef(); SPDocument *doUnref(); - Inkscape::Util::Unit const* getDefaultUnit(); + Inkscape::Util::Unit const* getDefaultUnit() const; Inkscape::Util::Quantity getWidth() const; Inkscape::Util::Quantity getHeight() const; Geom::Point getDimensions() const; -- cgit v1.2.3