Skip to content

Commit 0287a26

Browse files
committed
gui: fix small issues
Signed-off-by: LucasYuki <lucasyuki@yahoo.com.br>
1 parent d4c534c commit 0287a26

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/gui/src/chartsWidget.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,14 @@ EndPointSlackMap* ChartsWidget::getData(const std::string& path_group,
535535
// filter only by path_group
536536
endpoints_cache_[key] = stagui_->getEndPointToSlackMap(path_group);
537537
} else {
538-
EndPointSlackMap data = fetchSlackHistogramData();
539-
if (data.empty()) {
538+
endpoints_cache_[key] = fetchSlackHistogramData();
539+
if (endpoints_cache_[key].empty()) {
540540
logger_->warn(
541541
utl::GUI,
542542
97,
543543
"All pins are unconstrained. Cannot plot histogram. Check if "
544544
"timing data is loaded!");
545545
}
546-
endpoints_cache_[key] = data;
547546
}
548547
}
549548
return &endpoints_cache_[key];
@@ -715,8 +714,8 @@ void HistogramView::populateBins()
715714
all_histogram_->generateBins(1, -0.1, 0.2);
716715
for (auto& histogram : histograms_) {
717716
histogram->generateBins(1, -0.1, 0.2);
718-
return;
719717
}
718+
return;
720719
}
721720

722721
// determine interval

0 commit comments

Comments
 (0)