[Libreoffice-commits] .: Branch 'feature/layout' - sw/source

Ricardo Cruz rpmcruz at kemper.freedesktop.org
Sun Dec 19 12:36:56 PST 2010


 sw/source/ui/dialog/wordcountdialog.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 49920f4842274a4038f28393d6cc7b6abc1ee98f
Author: Ricardo Cruz <rpmcruz at alunos.dcc.fc.up.pt>
Date:   Sun Dec 19 20:35:27 2010 +0000

    Fixed LDialog layout bugs | Improved Table: better space use by multi-span...

diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx
index 06cf696..323a054 100644
--- a/sw/source/ui/dialog/wordcountdialog.cxx
+++ b/sw/source/ui/dialog/wordcountdialog.cxx
@@ -219,8 +219,8 @@ void  SwWordCountDialog::SetValues(const SwDocStat& rCurrent, const SwDocStat& r
 IMPL_LINK( SwWordCountDialog, RefreshHdl, PushButton *, EMPTYARG )
 {
     SwDocStat cur, whole;
-    int charsNb = (rand() % 4) + 1;
-    int base = pow (10, charsNb);
+    int charsNb = ((rand() % 4) + 1);
+    int base = pow (1000, charsNb);
     cur.nWord = rand() % base;
     cur.nChar = rand() % base;
     cur.nCharExcludingSpaces = rand() % base;


More information about the Libreoffice-commits mailing list