X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.cpp;h=d017db0cae115dfcad8ff041461c2607e582a59c;hb=2ebd535e99ebd1578209bf3e5890b06871e1dfeb;hp=463d0f24b8bd0864be6241217b6e0077c157059c;hpb=b099d9ae15c45a9c30727078d69c0c7bd8029c9a;p=lyx.git diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 463d0f24b8..d017db0cae 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2804,19 +2804,7 @@ Point BufferView::coordOffset(DocIterator const & dit) const } // remember width for the case that sl.inset() is positioned in an RTL inset - if (i && dit[i - 1].text()) { - // If this Inset is inside a Text Inset, retrieve the Dimension - // from the containing text instead of using Inset::dimension() which - // might not be implemented. - // FIXME (Abdel 23/09/2007): this is a bit messy because of the - // elimination of Inset::dim_ cache. This coordOffset() method needs - // to be rewritten in light of the new design. - Dimension const & dim = coordCache().getInsets().dim(&sl.inset()); - lastw = dim.wid; - } else { - Dimension const dim = sl.inset().dimension(*this); - lastw = dim.wid; - } + lastw = sl.inset().dimension(*this).wid; //lyxerr << "Cursor::getPos, i: " // << i << " x: " << xx << " y: " << y << endl;