aboutsummaryrefslogtreecommitdiff
path: root/dw/image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/image.cc')
-rw-r--r--dw/image.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/image.cc b/dw/image.cc
index 827cd753..50083151 100644
--- a/dw/image.cc
+++ b/dw/image.cc
@@ -384,11 +384,11 @@ void Image::draw (core::View *view, core::Rectangle *area)
getContentHeight());
}
- usedView->drawText (getStyle()->font, getStyle()->color,
+ usedView->drawSimpleWrappedText (getStyle()->font, getStyle()->color,
core::style::Color::SHADING_NORMAL,
allocation.x + getStyle()->boxOffsetX (),
- allocation.y + getStyle()->boxOffsetY ()
- + getStyle()->font->ascent,
+ allocation.y + getStyle()->boxOffsetY (),
+ getContentWidth(), getContentHeight(),
altText, strlen(altText));
if (clippingView)