]> git.lyx.org Git - features.git/commitdiff
lil' cleanup
authorEdwin Leuven <e.leuven@gmail.com>
Mon, 8 Mar 2010 04:08:11 +0000 (04:08 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Mon, 8 Mar 2010 04:08:11 +0000 (04:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33666 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp
src/insets/InsetTabular.h

index 59fee941ca65bad2ffe40aad9449c3e68cfdf5a3..9321f8250a19118b18a1bb021131883a7e8772a7 100644 (file)
@@ -893,19 +893,19 @@ int Tabular::columnWidth(idx_type cell) const
 
 int Tabular::rowHeight(idx_type cell) const
 {
-       row_type const span = rowSpan(cell);
-       row_type const row = cellRow(cell);
-       int h = rowAscent(row) + rowDescent(row);
-
-       for(row_type r = row; r < row + span ; ++r) {
-               if (r > row) {
-                       h += rowAscent(r);
-                       h += interRowSpace(r);
-               }
-               if (r < row + span - 1)
-                       h += rowDescent(r);
-       }
-       return h;
+       row_type const span = rowSpan(cell);
+       row_type const row = cellRow(cell);
+       int h = rowAscent(row) + rowDescent(row);
+
+       for(row_type r = row; r < row + span ; ++r) {
+               if (r > row) {
+                       h += rowAscent(r);
+                       h += interRowSpace(r);
+               }
+               if (r < row + span - 1)
+                       h += rowDescent(r);
+       }
+       return h;
 }
 
 
index fd15eece8944688bc922b403959c3750e99e9fcd..7605bff095264bd02cbbfe2754f0fe8064bb9ce9 100644 (file)
@@ -910,8 +910,6 @@ private:
        ///
        void resetPos(Cursor & cur) const;
        ///
-       void removeTabularRow();
-       ///
        bool copySelection(Cursor & cur);
        ///
        bool pasteClipboard(Cursor & cur);