X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcursor.C;h=42a0c7cf1bfcc318e985ed8121705f6202d45f5e;hb=2734cc154853c61a7ea54bfeea3adc908f68bdc5;hp=e63050cf7db7fcf06d04a33111c200e32cb158c3;hpb=37e164c6f9e792e51ceac0ad58885ee5b3758330;p=lyx.git diff --git a/src/cursor.C b/src/cursor.C index e63050cf7d..42a0c7cf1b 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -900,9 +900,6 @@ int LCursor::targetX() const void LCursor::setTargetX() { - // For now this is good enough. A better solution would be to - // avoid this rebreak by setting cursorX only after drawing - bottom().text()->redoParagraph(bottom().pit()); int x; int y; getPos(x, y); @@ -1175,9 +1172,9 @@ string LCursor::currentState() } -string LCursor::getPossibleLabel() +docstring LCursor::getPossibleLabel() { - return inMathed() ? "eq:" : text()->getPossibleLabel(*this); + return inMathed() ? from_ascii("eq:") : text()->getPossibleLabel(*this); }