Bug 221947

Summary: Kjots: format painter doesn't seem to work
Product: [Unmaintained] kdelibs Reporter: btuutp45
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: anderslund, winter
Priority: NOR    
Version: 4.14.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch (untested)

Description btuutp45 2010-01-09 17:22:54 UTC
Version:           4.3.4 (using 4.3.4 (KDE 4.3.4), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.30-2-686

I've tried hightlighting some formated text (strikethrough, grey colored text) then clicking "format painter". I then highlight normal text and the format doesn't transfer. 

I've tried clicking format painter first, then highlighting the formatted text then highlighting the normal text and the format didn't transfer. 

I'm not sure if I'm not using the feature correctly, or if this is a bug.
Comment 1 Anders Lund 2010-11-05 15:20:42 UTC
Created attachment 53164 [details]
patch (untested)

According to docs, textCursor() returns a copy, so to apply changes you have to call setTextCursor(). I do not have a source build (netbook), but i assume this should work.
Comment 2 Allen Winter 2015-09-06 14:03:05 UTC
https://git.reviewboard.kde.org/r/125068/
Comment 3 Allen Winter 2015-09-08 19:07:19 UTC
Git commit 51da90df9eafaeefe4b2a4a24be3af2ae18df2f8 by Allen Winter.
Committed on 08/09/2015 at 19:05.
Pushed by winterz into branch 'KDE/4.14'.

krichtextwidget.cpp - fix format painter changes not taking effect.

REVIEW: 125068
MERGE: frameworks ktextwidgets

M  +6    -4    kdeui/widgets/krichtextwidget.cpp

http://commits.kde.org/kdelibs/51da90df9eafaeefe4b2a4a24be3af2ae18df2f8