reverting r20422 until I know more about this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20444 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-23 08:00:19 +00:00
parent 5aec75f931
commit 731ae937ea

View File

@ -178,15 +178,10 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit,
bool rtl = bv.textMetrics(sl.text()).isRTL(sl, boundary_i);
if (rtl)
x -= lastw;
// remember width for the case that sl.inset() is positioned in an RTL inset
Dimension const & dim = bv.parMetrics(sl.text(), sl.pit()).
insetDimension(&sl.inset());
lastw = dim.wid;
} else {
}
// remember width for the case that sl.inset() is positioned in an RTL inset
Dimension const dim = sl.inset().dimension(bv);
lastw = dim.wid;
}
//lyxerr << "Cursor::getPos, i: "
// << i << " x: " << xx << " y: " << y << endl;