diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-05 21:24:43 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-05 21:24:43 +0000 |
| commit | 9d62f4c3bdf4656d4fe7652430230fea32fa5872 (patch) | |
| tree | 960c9b872377a015900ddb2cd2f654ffc8e05e95 /src/display/canvas-axonomgrid.cpp | |
| parent | Fix moving handles (diff) | |
| parent | Fix EMF/WMF import scale (Bug #1229120). (diff) | |
| download | inkscape-9d62f4c3bdf4656d4fe7652430230fea32fa5872.tar.gz inkscape-9d62f4c3bdf4656d4fe7652430230fea32fa5872.zip | |
update to trunk
(bzr r11950.1.161)
Diffstat (limited to 'src/display/canvas-axonomgrid.cpp')
| -rw-r--r-- | src/display/canvas-axonomgrid.cpp | 10 |
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; |
