mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Improved character count statistics for letter based insets (e.g. the LyX logo).
This commit is contained in:
parent
7ec0bdbf28
commit
2dae4ab4f3
@ -5362,8 +5362,11 @@ void Buffer::Impl::updateStatistics(DocIterator & from, DocIterator & to, bool s
|
|||||||
++word_count_;
|
++word_count_;
|
||||||
inword = true;
|
inword = true;
|
||||||
}
|
}
|
||||||
if (ins && ins->isLetter())
|
if (ins && ins->isLetter()) {
|
||||||
++char_count_;
|
odocstringstream os;
|
||||||
|
ins->toString(os);
|
||||||
|
char_count_ += os.str().length();
|
||||||
|
}
|
||||||
else if (ins && ins->isSpace())
|
else if (ins && ins->isSpace())
|
||||||
++blank_count_;
|
++blank_count_;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user