Ehh,

text.C:

   // well this is the caption hack since one caption is really enough
   if (layout.labeltype == LABEL_SENSITIVE) {
     if (!cursor.pos())
         // set to standard-layout
         cursor.par()->applyLayout(0);
     else
         // set to standard-layout
         cursor.par()->next()->applyLayout(0);
   }

...when the only definition of applyLayout I can find expects a string
argument?

Where is strong typing when you need it?

Fix attached.

Martin

Index: text.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/text.C,v
retrieving revision 1.234
diff -u -p -r1.234 text.C
--- text.C      2002/03/04 01:06:37     1.234
+++ text.C      2002/03/05 15:12:39
@@ -1709,10 +1709,10 @@ void LyXText::breakParagraph(BufferView 
    if (layout.labeltype == LABEL_SENSITIVE) {
      if (!cursor.pos())
             // set to standard-layout
-            cursor.par()->applyLayout(0);
+            cursor.par()->applyLayout("Standard");
      else
             // set to standard-layout
-            cursor.par()->next()->applyLayout(0);
+            cursor.par()->next()->applyLayout("Standard");
    }
    
    /* if the cursor is at the beginning of a row without prior newline, 

Attachment: msg33962/pgp00000.pgp
Description: PGP signature

Reply via email to