1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

[302875] Add comment for clarification

This commit is contained in:
Anton Leherbauer 2010-03-02 08:02:45 +00:00
parent 736f816334
commit 8e1def1e77

View file

@ -1901,6 +1901,8 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
private BigInteger getTopAddress() {
BigInteger topAddress = getAddressOfLine(fViewer.getTopIndex());
if (topAddress.equals(fStartAddress)) {
// in rare cases, the top line can be '...'
// don't use it as reference, take the next line
topAddress = getAddressOfLine(fViewer.getTopIndex() + 1);
}
return topAddress;