]> git.lyx.org Git - lyx.git/blobdiff - src/table.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / table.C
index 11531464456f375c0b1e95da64cec45bc4e5270d..bd6ff67a1d2d83b9e7546bcfa4bb83b98b720692 100644 (file)
@@ -601,7 +601,8 @@ bool LyXTable::SetPWidth(int cell, string width)
         cellinfo_of_cell(fvcell)->p_width = width;
     } else {
         column_info[column_of_cell(fvcell)].p_width = width;
-        SetAlignment(cell,LYX_ALIGN_LEFT);
+       if (!width.empty()) // do this only if there is a width
+               SetAlignment(cell,LYX_ALIGN_LEFT);
     }
     return true;
 }