richedit: Count graphics towards line width.
commit1a2ccfe9c79973f499e38321bd5267a2cddee59b
authorDylan Smith <dylan.ah.smith@gmail.com>
Tue, 10 Mar 2009 23:01:09 +0000 (10 19:01 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 11 Mar 2009 12:03:30 +0000 (11 13:03 +0100)
treefecd7c9d72d4e7ad77522fe25834422f23b83adf
parent782ea74acc56b27077ddefcd7c5efae246b2fc60
richedit: Count graphics towards line width.

Images that are inserted into richedit controls store a space for the
text, since that is the character returned when getting the plain text
from the control.

When calculating the width of a line, the space character is skipped,
but images should not be skipped.  This can be seen by inserting an
image into wordpad on a line by it's own, then centering the line.  The
image will start from the center rather than being centered in the
control.
dlls/riched20/wrap.c