Skip to content

Commit a12276a

Browse files
committed
gui: do nothing on show setup when block is not defined
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 48f3e7d commit a12276a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/src/heatMap.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ Painter::Color HeatMapDataSource::getColor(double value) const
224224

225225
void HeatMapDataSource::showSetup()
226226
{
227+
if (block_ == nullptr) {
228+
return;
229+
}
230+
227231
if (setup_ == nullptr) {
228232
setup_ = new HeatMapSetup(*this,
229233
QString::fromStdString(name_),

0 commit comments

Comments
 (0)