svx/source/tbxctrls/layctrl.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
New commits: commit 1d18297e1fd65e7e4d6b26a65deb8e33fe38fac7 Author: Fridrich Å trba <fridrich.st...@bluewin.ch> Date: Fri Dec 20 18:00:38 2013 +0100 C++11 is not everywhere, so be wise Change-Id: I5935caa1d3c54bc9becd01a96499ca9158ea468c diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx index eb55215..d519ddc3 100644 --- a/svx/source/tbxctrls/layctrl.cxx +++ b/svx/source/tbxctrls/layctrl.cxx @@ -62,11 +62,11 @@ private: long TABLE_CELL_WIDTH; long TABLE_CELL_HEIGHT; - const long TABLE_CELLS_HORIZ = 10; - const long TABLE_CELLS_VERT = 15; + const long TABLE_CELLS_HORIZ; + const long TABLE_CELLS_VERT; - long TABLE_POS_X = 2; - long TABLE_POS_Y = 2; + long TABLE_POS_X; + long TABLE_POS_Y; long TABLE_WIDTH; long TABLE_HEIGHT; @@ -111,11 +111,16 @@ TableWindow::TableWindow( sal_uInt16 nSlotId, const OUString& rCmd, const OUStri nLine( 0 ), rTbx(rParentTbx), mxFrame( rFrame ), - maCommand( rCmd ) + maCommand( rCmd ), + TABLE_CELLS_HORIZ(10), + TABLE_CELLS_VERT(15), + TABLE_POS_X(2), + TABLE_POS_Y(2) { TABLE_CELL_WIDTH = 15 * GetDPIScaleFactor(); TABLE_CELL_HEIGHT = 15 * GetDPIScaleFactor(); + TABLE_WIDTH = TABLE_POS_X + TABLE_CELLS_HORIZ*TABLE_CELL_WIDTH; TABLE_HEIGHT = TABLE_POS_Y + TABLE_CELLS_VERT*TABLE_CELL_HEIGHT;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits