summaryrefslogtreecommitdiffstats
path: root/src/dialogs/clonetiler.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-01-07 21:27:52 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-01-07 21:27:52 +0000
commitb3874d0fce9eacd2dc8183cc320c6e963a347c66 (patch)
tree58c94bb6aebb90724ddc9a3fae9920d56884ae89 /src/dialogs/clonetiler.cpp
parentdocumentation: spelling (diff)
downloadinkscape-b3874d0fce9eacd2dc8183cc320c6e963a347c66.tar.gz
inkscape-b3874d0fce9eacd2dc8183cc320c6e963a347c66.zip
dropped deprecated function sp_repr_get_double_attribute
(bzr r10858)
Diffstat (limited to 'src/dialogs/clonetiler.cpp')
-rw-r--r--src/dialogs/clonetiler.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp
index e140f6f89..3a411dd8a 100644
--- a/src/dialogs/clonetiler.cpp
+++ b/src/dialogs/clonetiler.cpp
@@ -1147,10 +1147,10 @@ static void clonetiler_apply(GtkWidget */*widget*/, void *)
}
Geom::Point center;
- double w;
- double h;
- double x0;
- double y0;
+ double w = 0;
+ double h = 0;
+ double x0 = 0;
+ double y0 = 0;
if (keepbbox &&
obj_repr->attribute("inkscape:tile-w") &&
@@ -1160,14 +1160,16 @@ static void clonetiler_apply(GtkWidget */*widget*/, void *)
obj_repr->attribute("inkscape:tile-cx") &&
obj_repr->attribute("inkscape:tile-cy")) {
- double cx = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-cx", 0);
- double cy = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-cy", 0);
+ double cx = 0;
+ double cy = 0;
+ sp_repr_get_double (obj_repr, "inkscape:tile-cx", &cx);
+ sp_repr_get_double (obj_repr, "inkscape:tile-cy", &cy);
center = Geom::Point (cx, cy);
- w = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-w", 0);
- h = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-h", 0);
- x0 = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-x0", 0);
- y0 = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-y0", 0);
+ sp_repr_get_double (obj_repr, "inkscape:tile-w", &w);
+ sp_repr_get_double (obj_repr, "inkscape:tile-h", &h);
+ sp_repr_get_double (obj_repr, "inkscape:tile-x0", &x0);
+ sp_repr_get_double (obj_repr, "inkscape:tile-y0", &y0);
} else {
bool prefs_bbox = prefs->getBool("/tools/bounding_box", false);
SPItem::BBoxType bbox_type = ( !prefs_bbox ?