X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcursor.C;h=42a0c7cf1bfcc318e985ed8121705f6202d45f5e;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=1d6e67442af467e3c4480fae42127bbcc054509f;hpb=eb651c3d6100eac2d3ec6d176234a0f9512671b9;p=lyx.git diff --git a/src/cursor.C b/src/cursor.C index 1d6e67442a..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(bv(), 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); }