Re: r35894 - in lyx-devel/trunk/src: frontends/qt4 insets

2010-10-28 Thread Vincent van Ravesteijn

 Op 29-10-2010 3:18, uwesto...@lyx.org schreef:

Modified: lyx-devel/trunk/src/insets/InsetTabular.cpp
==
--- lyx-devel/trunk/src/insets/InsetTabular.cpp Fri Oct 29 02:46:21 2010
(r35893)
+++ lyx-devel/trunk/src/insets/InsetTabular.cpp Fri Oct 29 03:18:18 2010
(r35894)
@@ -4313,6 +4313,9 @@
break;

case Tabular::SET_LONGTABULAR:
+   // setting as longtable is not allowed when table is 
inside a float
+   if (cur.innerInsetOfType(FLOAT_CODE) != 0)
+   status.setEnabled(false);
status.setOnOff(tabular.is_long_tabular);
break;



What about Wrap floats ? These have the code WRAP_CODE.

Vincent


Re: r35894 - in lyx-devel/trunk/src: frontends/qt4 insets

2010-10-28 Thread Uwe Stöhr

Am 29.10.2010 03:23, schrieb Vincent van Ravesteijn:


What about Wrap floats ? These have the code WRAP_CODE.


Thanks, I forgot the wrapped floats and added this now.

regards Uwe


Re: r35894 - in lyx-devel/trunk/src: frontends/qt4 insets

2010-10-28 Thread Vincent van Ravesteijn

 Op 29-10-2010 3:18, uwesto...@lyx.org schreef:

Modified: lyx-devel/trunk/src/insets/InsetTabular.cpp
==
--- lyx-devel/trunk/src/insets/InsetTabular.cpp Fri Oct 29 02:46:21 2010
(r35893)
+++ lyx-devel/trunk/src/insets/InsetTabular.cpp Fri Oct 29 03:18:18 2010
(r35894)
@@ -4313,6 +4313,9 @@
break;

case Tabular::SET_LONGTABULAR:
+   // setting as longtable is not allowed when table is 
inside a float
+   if (cur.innerInsetOfType(FLOAT_CODE) != 0)
+   status.setEnabled(false);
status.setOnOff(tabular.is_long_tabular);
break;



What about Wrap floats ? These have the code WRAP_CODE.

Vincent


Re: r35894 - in lyx-devel/trunk/src: frontends/qt4 insets

2010-10-28 Thread Uwe Stöhr

Am 29.10.2010 03:23, schrieb Vincent van Ravesteijn:


What about Wrap floats ? These have the code WRAP_CODE.


Thanks, I forgot the wrapped floats and added this now.

regards Uwe