summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.cpp
diff options
context:
space:
mode:
authorJoshua L. Blocher <verbalshadow@gmail.com>2008-12-28 22:44:35 +0000
committerverbalshadow <verbalshadow@users.sourceforge.net>2008-12-28 22:44:35 +0000
commit1e3ef71825fa122062b626937848539cbb62f0ca (patch)
tree80c4099e25b93d910b580ebe681cdf11d8957d60 /src/sp-tspan.cpp
parentconvert NR to Geom (diff)
downloadinkscape-1e3ef71825fa122062b626937848539cbb62f0ca.tar.gz
inkscape-1e3ef71825fa122062b626937848539cbb62f0ca.zip
More NR ==> Geom changes
(bzr r7032)
Diffstat (limited to 'src/sp-tspan.cpp')
-rw-r--r--src/sp-tspan.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp
index 2496fc6e0..9da95df90 100644
--- a/src/sp-tspan.cpp
+++ b/src/sp-tspan.cpp
@@ -579,7 +579,7 @@ sp_textpath_to_text(SPObject *tp)
NRRect bbox;
sp_item_invoke_bbox(SP_ITEM(text), &bbox, sp_item_i2doc_affine(SP_ITEM(text)), TRUE);
- NR::Point xy(bbox.x0, bbox.y0);
+ Geom::Point xy(bbox.x0, bbox.y0);
// make a list of textpath children
GSList *tp_reprs = NULL;
@@ -602,9 +602,9 @@ sp_textpath_to_text(SPObject *tp)
// set x/y on text
/* fixme: Yuck, is this really the right test? */
- if (xy[NR::X] != 1e18 && xy[NR::Y] != 1e18) {
- sp_repr_set_svg_double(SP_OBJECT_REPR(text), "x", xy[NR::X]);
- sp_repr_set_svg_double(SP_OBJECT_REPR(text), "y", xy[NR::Y]);
+ if (xy[Geom::X] != 1e18 && xy[Geom::Y] != 1e18) {
+ sp_repr_set_svg_double(SP_OBJECT_REPR(text), "x", xy[Geom::X]);
+ sp_repr_set_svg_double(SP_OBJECT_REPR(text), "y", xy[Geom::Y]);
}
}