Bug 823176 - Line numbers in file annotation are not in sync with the actual lines.
Summary: Line numbers in file annotation are not in sync with the actual lines.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qgit
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-19 18:29 UTC by Elbin Pallimalil
Modified: 2012-10-02 08:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-20 20:33:46 UTC
Type: Bug


Attachments (Terms of Use)
Screenshot (310.24 KB, image/png)
2012-05-19 18:32 UTC, Elbin Pallimalil
no flags Details
Proposed fix (754 bytes, patch)
2012-09-13 20:56 UTC, vaxon
no flags Details | Diff

Description Elbin Pallimalil 2012-05-19 18:29:19 UTC
Description of problem:
Please refer the attached screen shot. When viewing a file the line numbers in the file annotation section are not in sync with the actual line numbers. For eg in the screen shot, line number 15 is shown against what is actually line number 16.


Version-Release number of selected component (if applicable):
2.3


How reproducible:
Always


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Elbin Pallimalil 2012-05-19 18:32:07 UTC
Created attachment 585598 [details]
Screenshot

Comment 2 Dan Horák 2012-05-22 08:30:15 UTC
I think there is a problem with fonts setup in the application and in the system. Please open a bug report in upstream directly at http://libre.tibirna.org/projects/qgit

Comment 3 Elbin Pallimalil 2012-06-05 13:44:22 UTC
Bug opened.

http://libre.tibirna.org/issues/20

Comment 4 Jim Lieb 2012-06-12 22:54:28 UTC
I've tried all the combos of monospace fonts I could find.  It is not an issue of fonts setup.  The problem is in how the file display and file annotation is set up.  Choosing a magic font "works" only if the font metrics are somehow identical with all font features.  The annotations and line numbers are in a shaded (grey) font and the file itself is black.  Whatever goes on in the rendering of each whether it is rounding errors, aliasing funnies or ??? getting the right magic is just dumb luck.

To show how bad it is off, If I display a 1233 line file, that last line is somewhere between lines 1164 and 1165 in the annotations/line numbers column.  This makes this very useful feature (nicer than gitk et al) useless.

This feature needs to be re-thought.  What needs to be done is to replace this canvas, text box, or whatever widget it is with a "table". I may not be using the right terms but this pane has to be a two/three column, N row table. The rendering will then be rendering cells and who cares what the font characteristics are.

Elbin, I checked out issue 20 over on their site and the analysis is close but missing what I noted above.  I don't have an acct there so could you poke them and pass this on?  It is annoying enough that i'd fix it myself except I'm up to my ears in getting an nfs server to work.

Thanks

Comment 5 vaxon 2012-09-13 20:56:40 UTC
Created attachment 612641 [details]
Proposed fix

Could you, please, test this patch. It seems to work for me on fedora 17.

Thanks,
Val.

Comment 6 Dan Horák 2012-09-14 06:57:51 UTC
(In reply to comment #5)
> Created attachment 612641 [details]
> Proposed fix
> 
> Could you, please, test this patch. It seems to work for me on fedora 17.
> 
> Thanks,
> Val.

Many thanks, it fixes the issue also for me, going to prepare an official update.

Comment 7 Fedora Update System 2012-09-14 07:18:47 UTC
qgit-2.4-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/qgit-2.4-4.fc16

Comment 8 Fedora Update System 2012-09-14 07:18:58 UTC
qgit-2.4-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/qgit-2.4-4.fc18

Comment 9 Fedora Update System 2012-09-14 07:19:11 UTC
qgit-2.4-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/qgit-2.4-4.fc17

Comment 10 Fedora Update System 2012-09-14 07:19:21 UTC
qgit-2.4-4.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/qgit-2.4-4.el6

Comment 11 Fedora Update System 2012-09-16 17:10:19 UTC
Package qgit-2.4-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qgit-2.4-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13947/qgit-2.4-4.fc18
then log in and leave karma (feedback).

Comment 12 Jim Lieb 2012-09-19 16:43:40 UTC
Tested 2.4-4.fc16.x86_64.  Works.  I'm ok with closing this.

Comment 13 Fedora Update System 2012-09-20 20:33:46 UTC
qgit-2.4-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 vaxon 2012-09-29 12:20:02 UTC
Will the f16/f17/el6 versions hit the stable repo like f18 did?

Thanks,
Val.

Comment 15 Dan Horák 2012-10-02 08:03:17 UTC
(In reply to comment #14)
> Will the f16/f17/el6 versions hit the stable repo like f18 did?
> 
> Thanks,
> Val.

All should out now, thanks for reminder.


Note You need to log in before you can comment on or make changes to this bug.