// for debugging use:
+// #define SYNC_PAINT
#include <unistd.h>
#ifndef SYNC_PAINT
#include <pthread.h>
if (o->parm.renderText->flags & gPainter::RT_VALIGN_CENTER)
{
eRect bbox = para->getBoundBox();
- int vcentered_top = (o->parm.renderText->area.height() - bbox.height()) / 2;
+ int vcentered_top = o->parm.renderText->area.top() + ((o->parm.renderText->area.height() - bbox.height()) / 2);
int correction = vcentered_top - bbox.top();
offset += ePoint(0, correction);
}