summaryrefslogtreecommitdiffstats
path: root/src/display/canvas-axonomgrid.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2013-10-05 03:54:43 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2013-10-05 03:54:43 +0000
commit706294ff1fa82c86089221d8ee4a0d5bd032925a (patch)
tree4f57389a922f2cb3fdcec99cb21599580e954867 /src/display/canvas-axonomgrid.cpp
parentC++ (diff)
downloadinkscape-706294ff1fa82c86089221d8ee4a0d5bd032925a.tar.gz
inkscape-706294ff1fa82c86089221d8ee4a0d5bd032925a.zip
Rewrite the internals of the unit code for somewhat better performance
(bzr r12661)
Diffstat (limited to 'src/display/canvas-axonomgrid.cpp')
-rw-r--r--src/display/canvas-axonomgrid.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp
index f7a7cb39a..654144122 100644
--- a/src/display/canvas-axonomgrid.cpp
+++ b/src/display/canvas-axonomgrid.cpp
@@ -214,18 +214,18 @@ CanvasAxonomGrid::readRepr()
{
gchar const *value;
if ( (value = repr->attribute("originx")) ) {
- Inkscape::Util::Quantity q = unit_table.getQuantity(value);
+ Inkscape::Util::Quantity q = unit_table.parseQuantity(value);
gridunit = q.unit;
- origin[Geom::X] = unit_table.getQuantity(value).value("px");
+ origin[Geom::X] = q.value("px");
}
if ( (value = repr->attribute("originy")) ) {
- Inkscape::Util::Quantity q = unit_table.getQuantity(value);
+ Inkscape::Util::Quantity q = unit_table.parseQuantity(value);
gridunit = q.unit;
- origin[Geom::Y] = unit_table.getQuantity(value).value("px");
+ origin[Geom::Y] = q.value("px");
}
if ( (value = repr->attribute("spacingy")) ) {
- Inkscape::Util::Quantity q = unit_table.getQuantity(value);
+ Inkscape::Util::Quantity q = unit_table.parseQuantity(value);
gridunit = q.unit;
lengthy = q.value("px");
if (lengthy < 0.0500) lengthy = 0.0500;