diff options
author | Ashod Nakashian <ashodnakashian@yahoo.com> | 2015-07-08 08:37:23 -0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-08 14:34:38 +0000 |
commit | c3c6bf235af32781e83d4fed2867a16bfeafa659 (patch) | |
tree | db53b9ebd60fd1c2f066dae9ef060db788e13e8e /stoc/source/inspect/introspection.cxx | |
parent | 6793eaa4fa77292b23e9b86221e598f438d45b8e (diff) |
Limit the font preview text length.
When text is selected, the preview text is the first TEXT_WIDTH (80)
characters of the selection rounded up to the next word.
However when no word boundary is found, the preview text is as long
as the selection, which causes the preview to be less than usable
in some extreme cases.
This patch is to limit the preview text length when no word boundary
is found, thereby always resulting in predictable behavior.
Change-Id: I8a21638d601714db956b9b160664dfe1e5e49a4a
Reviewed-on: https://gerrit.libreoffice.org/16855
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'stoc/source/inspect/introspection.cxx')
0 files changed, 0 insertions, 0 deletions