]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
Extend the navigate menu to child docs
[lyx.git] / src / cursor.C
index 1d6e67442af467e3c4480fae42127bbcc054509f..42a0c7cf1bfcc318e985ed8121705f6202d45f5e 100644 (file)
@@ -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);
 }