Bug 291019 - Underline extends past text to the edge of the page, when wrapped
Summary: Underline extends past text to the edge of the page, when wrapped
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Chakra Linux
: NOR minor
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 04:52 UTC by Kubuntiac
Modified: 2012-01-14 13:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kubuntiac 2012-01-09 04:52:11 UTC
Version:           svn (using KDE 4.7.4) 
OS:                Linux

Sometimes underline will continue to places where there is not text above it. Specifically, if you underline a section of text that is more than 1 line, it will extend to the edge of the text area, rather than just to the end of the text.

See the attached image, particularly the underline (with no text) on the right side.

Reproducible: Always

Steps to Reproduce:
1. Select some text that wraps over >1 line.
2. Select Underline in the gui.

Actual Results:  
Underline extends past the text to the right hand edge of the available text area

Expected Results:  
Underline only exists where there is text (or a space character) above it

OS: Linux (x86_64) release 3.1-CHAKRA
Compiler: gcc

QT 4.8, Calligra revision v2.3.85-474-g2215d10, compiled with the build script here (just with creative_only flag changed to off):
http://forum.kde.org/viewtopic.php?f=139&t=92880

May be related to bug#289497
Comment 1 Camilla Boemann 2012-01-14 13:49:58 UTC
Git commit 99aac631989fdf0777ec97c6dd666a12f274a31c by C. Boemann.
Committed on 14/01/2012 at 14:48.
Pushed by boemann into branch 'master'.

Fix spurios underlines at the end of lines if fragment spans more
than one line

M  +4    -1    libs/textlayout/KoTextLayoutArea_paint.cpp

http://commits.kde.org/calligra/99aac631989fdf0777ec97c6dd666a12f274a31c