mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Bug 489512 - Show local variables in the traditional memory render
* Added an adjustment to the calculation of the addressable char width so it does not go beyond the containing cell size when using radixes where the number of characters does not grow linearly with the number of octets being represented. This adjustment is only necessary when the cell can contain the same number of octets as the addressable size Change-Id: Ic9643c98094bc28621e6807eeed0c283dbe6672a
This commit is contained in:
parent
ed7f1cea09
commit
7436cb9ae4
1 changed files with 7 additions and 0 deletions
|
@ -507,6 +507,13 @@ public class DataPane extends AbstractPane
|
|||
}
|
||||
// Prepare to enclose addresses with additional info in a rectangle
|
||||
int addressableWidth = getAddressableWidth();
|
||||
if (fRendering.getAddressableSize() == fRendering.getBytesPerColumn()) {
|
||||
// When the cell size is dimensioned to enclose an addressable size, the width can not be larger
|
||||
// than the containing cell, this adjustment is necessary when using radixes where the number of characters
|
||||
// does not increase in proportion to the number of bytes e.g. octal, decimal, etc.
|
||||
addressableWidth = getAddressableWidth() > getCellWidth() ? getCellWidth() : getAddressableWidth();
|
||||
}
|
||||
|
||||
assert addressableWidth > 0;
|
||||
|
||||
// Initialize the dimensions for the rectangle
|
||||
|
|
Loading…
Add table
Reference in a new issue