From 8fc91bbfd90c0ccafc842d94e2b3bd10b8889595 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sun, 4 Jan 2015 20:44:00 +0100 Subject: Added Extremes::adjustmentWidth; fixed Textblock::mustBeWidenedToAvailWidth. --- dw/image.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dw/image.cc') diff --git a/dw/image.cc b/dw/image.cc index f6bf6434..b9a1abeb 100644 --- a/dw/image.cc +++ b/dw/image.cc @@ -265,6 +265,9 @@ void Image::getExtremesImpl (core::Extremes *extremes) extremes->maxWidthIntrinsic = extremes->maxWidth; correctExtremes (extremes); + + extremes->adjustmentWidth = + misc::min (extremes->minWidthIntrinsic, extremes->minWidth); } void Image::sizeAllocateImpl (core::Allocation *allocation) -- cgit v1.2.3