Skip to content

Commit a9ea373

Browse files
committed
Fix: Ascent of peak index label in ascent viewer when no peak is set
Previously showed "0/-1", now "0/0"
1 parent 852c268 commit a9ea373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viewer/ascent_viewer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void AscentViewer::updateAscentNavigationTargets()
417417
lastAscentOfPeakViewRowIndex = ViewRowIndex();
418418

419419
currentAscentOfPeakIndex = -1;
420-
numAscentsOfPeak = -1;
420+
numAscentsOfPeak = 0;
421421

422422
BufferRowIndex bufferRowIndex = compAscents->getBufferRowIndexForViewRow(currentViewRowIndex);
423423
ItemID peakID = db->ascentsTable->peakIDColumn->getValueAt(bufferRowIndex);

0 commit comments

Comments
 (0)