Bug 251022 - kompare: changing color in settings and applying that change only redraws middle piece (between before and after)
Summary: kompare: changing color in settings and applying that change only redraws mid...
Status: CONFIRMED
Alias: None
Product: kompare
Classification: Applications
Component: viewpart (show other bugs)
Version: 4.1.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 22:35 UTC by esigra
Modified: 2018-11-21 04:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot after step 7. (56.16 KB, image/png)
2010-09-12 22:35 UTC, esigra
Details
Screenshot after applying second colour change (110.91 KB, image/png)
2012-12-25 03:00 UTC, esigra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esigra 2010-09-12 22:35:36 UTC
Created attachment 51572 [details]
Screenshot after step 7.

Version:           4.0.0 (using KDE 4.5.1) 
OS:                Linux

When changing a color in the configuredialog and applying that change, only the middle piece (between before and after) is redrawn.

Reproducible: Always

Steps to Reproduce:
1. Start Konsole.
2. Create a directory and cd into it.
3. Create the empty file empty.cc
4. Create the file prov.cc with some content like this:
float calculate_something(float const a, float const b, float const c) {
   return
      calculate_something(1.7, calculate_something(8.9, 19.51, 33.0), a) +
      calculate_something(c, 18.8, calculate_something(7.5, b, a));
}
5. Execute "diff -u empty.cc prov.cc|kompare -".
6. Open the settings dialog and change the background color of added blocks.
7. Press Apply.

Actual Results:  
Only the middle part is redrawn (see attached screenshot).

Expected Results:  
Also the before and after parts are redrawn.

The change does take effect if font is also changed before Apply is pressed, or the configuredialog is closed (OK or Cancel).
Comment 1 esigra 2012-12-25 03:00:39 UTC
Created attachment 76006 [details]
Screenshot after applying second colour change

Still reproducible with Kompare 4.1.2, although it does not seem to happen the FIRST time a new colour is applied - but always the SECOND time.
Comment 2 Andrew Crouthamel 2018-11-09 01:04:04 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 esigra 2018-11-18 09:25:10 UTC
This is a confirmation that the bug still exists in Kompare 4.1.3. But now it seems to work the first time the Apply button is pressed in a Kompare session. The following times it fails as previously reported.
Comment 4 Andrew Crouthamel 2018-11-21 04:14:30 UTC
Thanks for the update!