This commit is contained in:
Kovid Goyal 2012-02-27 16:27:03 +05:30
parent 9423839eff
commit ca3a61f33a

View File

@ -687,6 +687,7 @@ void PictureFlowPrivate::render_text(QPainter *painter, int index) {
// So that if there is no subtitle, the caption is not flush with the bottom // So that if there is no subtitle, the caption is not flush with the bottom
if (brect2.height() < fontSize) brect2.setHeight(fontSize); if (brect2.height() < fontSize) brect2.setHeight(fontSize);
brect2.setHeight(brect2.height()+5); // A bit of buffer
// So that the text does not occupy more than the lower half of the buffer // So that the text does not occupy more than the lower half of the buffer
if (brect.height() > ((int)(buffer.height()/3.0)) - fontSize*2) if (brect.height() > ((int)(buffer.height()/3.0)) - fontSize*2)