Andre Poenitz wrote:
On Mon, Nov 05, 2007 at 02:16:52PM +0100, Jean-Marc Lasgouttes wrote:
[EMAIL PROTECTED] writes:
Modified: lyx-devel/trunk/src/Paragraph.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/Paragraph.cpp?rev=21407
==============================================================================
--- lyx-devel/trunk/src/Paragraph.cpp (original)
+++ lyx-devel/trunk/src/Paragraph.cpp Sat Nov 3 19:12:52 2007
@@ -725,7 +725,11 @@
if ((inset->lyxCode() == GRAPHICS_CODE
|| inset->lyxCode() == MATH_CODE
- || inset->lyxCode() == HYPERLINK_CODE)
+ || inset->lyxCode() == HYPERLINK_CODE
+ || (inset->asInsetCollapsable()
+ && inset->asInsetCollapsable()->forceLTR()
+ // ERT is an exception, since it doesn't go to output
+ && inset->lyxCode() != ERT_CODE))
&& running_font.isRightToLeft()) {
if (running_font.language()->lang() == "farsi")
os << "\\beginL{}";
What about declaring forceLTR in the Inset class (returning
false by default) and overriding it for graphics, math and hyperlink?
This would simplify this code and avoid the cast to insetcollapsable.
Yes, please *extra sugar added*.
OK, I'll do it. Is this one of those commits which should get a message
"make Andre' happy"? ;)
Andre'