Skip to content

Commit cb370b2

Browse files
committed
Fixed a crash issue
1 parent d45ba72 commit cb370b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freeview/LayerTreeWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void LayerTreeWidget::contextMenuEvent(QContextMenuEvent *e)
268268
menu->addAction(wnd->ui->actionLoadPointSet);
269269
menu->addAction(wnd->ui->actionReloadPointSet);
270270
menu->addSeparator();
271-
if (wnd->GetMode() == RenderView::IM_VoxelEdit && ((LayerPointSet*)layer)->GetProperty()->GetShowSpline())
271+
if (wnd->GetMode() == RenderView::IM_VoxelEdit && type == "PointSet" && ((LayerPointSet*)layer)->GetProperty()->GetShowSpline())
272272
{
273273
QAction* act = new QAction("Convert to Volume Label", this);
274274
connect(act, SIGNAL(triggered(bool)), wnd, SLOT(OnPointSetToLabel()));

0 commit comments

Comments
 (0)