projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb680f
)
fix computation of Text bounding box to respect _clamped_width
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 28 Oct 2013 16:27:33 +0000
(12:27 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 28 Oct 2013 16:27:33 +0000
(12:27 -0400)
libs/canvas/text.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/text.cc
b/libs/canvas/text.cc
index acc25b9ffc63c05d4ed21120ab3e23ada7911474..438413080a2d7a539283bf157980e5f0d15f126a 100644
(file)
--- a/
libs/canvas/text.cc
+++ b/
libs/canvas/text.cc
@@
-159,7
+159,7
@@
Text::compute_bounding_box () const
Glib::RefPtr<Pango::Context> context = Glib::wrap (gdk_pango_context_get()); // context now owns C object and will free it
redraw (context);
}
- _bounding_box = Rect (0, 0,
_image->get_width(
), _image->get_height());
+ _bounding_box = Rect (0, 0,
min (_clamped_width, (double) _image->get_width()
), _image->get_height());
_bounding_box_dirty = false;
}
}