wuhailinjerry / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

Text in disassembly view does not resize and is cut off. #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See attached screenshots for more information.

1) Text is cut off (has missing characters or parts of characters from end).
2) When a column is resized, the text is not redrawn/does not show the 
previously cut off portion.

Attachment description:
Top-left: Normal view. Characters cut off in hex column.
Top-right: Address column extended. Address does not expand to fill the space.
Bottom: Example of whole hex byte missing.

Original issue reported on code.google.com by evan.teran on 3 Oct 2012 at 3:21

GoogleCodeExporter commented 9 years ago

Original comment by evan.teran on 3 Oct 2012 at 4:58

Attachments:

GoogleCodeExporter commented 9 years ago
Interesting, I've never seen this behavior before. Can you describe your system 
setup for specifically so I can try to reproduce it? Things that would be 
helpful are:

- linux distro and version
- version of Qt
- font you are using (in case it is a calculation of text boundaries issue)

Original comment by evan.teran on 3 Oct 2012 at 4:59

GoogleCodeExporter commented 9 years ago
I too noticed this issue. I'm running Ubuntu 9.04 and Qt 4.6.2 at the moment 
and used the default font (Monospace 8pt). I dug a little in the source and 
interesting enough if I used width('0') as opposed to maxWidth() is stopped 
doing it (even though a fixed width font like Monospace should have the same 
width for every character and the two functions should have the same value).

Original comment by evan.teran on 3 Oct 2012 at 4:59

GoogleCodeExporter commented 9 years ago
fixed in SVN. I plan to do a release fairly soon. It is possible that this is 
actually a bug in either Qt (since maxWidth() should never be larger than 
width(ch)) or more likely a bug in debian's Qt packages since I've only been 
able to reproduce on debian.

@John Martin: thank you for your research into the issue, my fix is actually to 
just use "width('X')" instead of "maxWidth()" as you found that this works 
around the issue.

Original comment by evan.teran on 3 Oct 2012 at 4:59

GoogleCodeExporter commented 9 years ago

Original comment by evan.teran on 3 Oct 2012 at 4:59