Commit 4f1b7ef
committed
Fix change highlight placement in TextMergeViewer after zoom change
The TextMergeViewer caches line heights for painting the change region
highlights. That cache is not invalidated upon a zoom change even though
the cached line heights are only valid for one specific zoom. In
consequence, the highlights are not properly placed after a zoom change
anymore.
This change clears the line height cached upon zoom change of the
according canvas, which fixes the placement of change highlight regions
after zoom changes.1 parent 4d9d68a commit 4f1b7ef
File tree
1 file changed
+12
-8
lines changed- team/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer
1 file changed
+12
-8
lines changedLines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2737 | 2737 | | |
2738 | 2738 | | |
2739 | 2739 | | |
2740 | | - | |
| 2740 | + | |
| 2741 | + | |
2741 | 2742 | | |
2742 | 2743 | | |
2743 | 2744 | | |
| |||
4398 | 4399 | | |
4399 | 4400 | | |
4400 | 4401 | | |
4401 | | - | |
4402 | | - | |
4403 | | - | |
4404 | | - | |
4405 | | - | |
4406 | | - | |
4407 | | - | |
| 4402 | + | |
4408 | 4403 | | |
4409 | 4404 | | |
4410 | 4405 | | |
| |||
4429 | 4424 | | |
4430 | 4425 | | |
4431 | 4426 | | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
4432 | 4436 | | |
4433 | 4437 | | |
4434 | 4438 | | |
| |||
0 commit comments