diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-02-04 17:16:16 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-02-04 17:16:16 +0000 |
| commit | 8517a8aa1cb64b76e8ea7e01f6f6edeaf7f2cc38 (patch) | |
| tree | fa572c9888785ea9305adbee342ae3937154852a /src/main.cpp | |
| parent | optimize includes, use stdlib instead of inttypes if we have it (diff) | |
| download | inkscape-8517a8aa1cb64b76e8ea7e01f6f6edeaf7f2cc38.tar.gz inkscape-8517a8aa1cb64b76e8ea7e01f6f6edeaf7f2cc38.zip | |
query: report true svg bbox, not inkscape's desktop bbox (makes more sense for scripting), remove newline
(bzr r74)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index f78b1f5ae..e791af153 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -738,7 +738,8 @@ do_query_dimension (SPDocument *doc, bool extent, NR::Dim2 const axis, const gch if (o) { sp_document_ensure_up_to_date (doc); - NR::Rect area = sp_item_bbox_desktop((SPItem *) o); + SPItem *item = ((SPItem *) o); + NR::Rect area = item->invokeBbox(sp_item_i2doc_affine(item)); // "true" SVG bbox for scripting Inkscape::SVGOStringStream os; if (extent) { @@ -746,7 +747,7 @@ do_query_dimension (SPDocument *doc, bool extent, NR::Dim2 const axis, const gch } else { os << area.min()[axis]; } - g_print ("%s\n", os.str().c_str()); + g_print ("%s", os.str().c_str()); } } |
