https://bugs.documentfoundation.org/show_bug.cgi?id=142494
Mike Kaganski <mikekagan...@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |difficultyBeginner, | |easyHack, skillCpp --- Comment #6 from Mike Kaganski <mikekagan...@hotmail.com> --- (In reply to Jamie Douglass from comment #5) > with the following two lines: > sal_uLong nChar = selectionStats.nChar ? selectionStats.nChar : > documentStats.nChar; > sal_uLong nWord = (selectionStats.nWord + selectionStats.nChar) ? > selectionStats.nWord : documentStats.nWord; > > would solve the issue. Indeed; and even simpler: the word count condition should only consider selected chars, not words, so the second line's condition should be the same as the first one's. Please don't hesitate to provide a fixing commit - we welcome contributions, and users who are interested that something is fixed do great things by actually fixing even small bugs. Please see https://www.libreoffice.org/community/developers/ -- You are receiving this mail because: You are the assignee for the bug.