summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Cruz <rpmcruz@alunos.dcc.fc.up.pt>2010-12-19 20:35:27 +0000
committerMichael Meeks <michael.meeks@novell.com>2011-07-21 11:34:01 +0100
commitb79bba7681b7765ae91126a0b33c1ecc09cced63 (patch)
tree442e8ac4585b76a6816a426c5db385680856bc24
parent65beeb8d88fc3c3c673c6f1e54a34104fe118520 (diff)
Fixed LDialog layout bugs | Improved Table: better space use by multi-span...
-rw-r--r--sw/source/ui/dialog/wordcountdialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx
index 06cf6961ba..323a0547dd 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;