Thanks Michael. Not sure if that was what you meant, but it works now and is even simpler than I thought:
Reference < XTextCursor > xModelCursor =
xDocumentText->createTextCursorByRange(formula->getAnchor()->getEnd());
xModelCursor->goRight(2, true);
if (xModelCursor->getString().equalsAscii("\n"))
...
Jan
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
