Return correct bounding box for multiline text

Change-Id: Id1a0f61a6597357dcd7dbf2dc5ecff5aa69ca921
Reviewed-on: https://iffwww.iff.kfa-juelich.de/review/61
Reviewed-by: Josef Heinen <j.heinen@fz-juelich.de>