]> git.lyx.org Git - lyx.git/blobdiff - src/text.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / text.C
index fbcd4c021eed5bae8f05430778f7e9da5b9c1e01..c497f3f259cb869a893c2a1cec05bc82999e571a 100644 (file)
@@ -284,7 +284,7 @@ int LyXText::LeftMargin(Row* row)
 
    /* table stuff -- begin*/ 
    if (row->par->table)
-      parindent.erase();
+      parindent.clear();
    /* table stuff -- end*/       
 
    x = LYX_PAPER_MARGIN;
@@ -307,7 +307,7 @@ int LyXText::LeftMargin(Row* row)
         if (row->par->FirstPhysicalPar()->Previous()) {
            newpar = row->par->DepthHook(row->par->GetDepth());
            if (newpar && lyxstyle.Style(parameters->textclass, newpar->GetLayout())->nextnoindent)
-              parindent.erase();
+              parindent.clear();
         }
       }
    }
@@ -337,7 +337,7 @@ int LyXText::LeftMargin(Row* row)
       
       if (newpar && !row->par->GetLayout()) {
         if (newpar->FirstPhysicalPar()->noindent)
-           parindent.erase();
+           parindent.clear();
         else
            parindent = lyxstyle.Style(parameters->textclass, 
                                       newpar->GetLayout())->parindent;