Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Apr 9, 2020
1 parent b8c0ac2 commit 09ad531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Changes between 1.0.0-rc.3 and 1.0.0-rc.4:
Changes between 1.0.0-rc.3 and 1.0.0-rc.5:
--------------------------------------------------
- Add preference: Toon Shader
- Add menu: Export as Image
Expand Down
3 changes: 2 additions & 1 deletion src/partwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,10 @@ void PartWidget::showCutRotationSettingPopup(const QPoint &pos)
hollowThicknessLayout->addWidget(hollowThicknessWidget);
}

QPushButton *buttons[(int)CutFace::Count] = {0};

if (part->hasCutFaceFunction()) {
standardFacesLayout = new QHBoxLayout;
QPushButton *buttons[(int)CutFace::Count] = {0};

cutFaceListWidget = new CutFaceListWidget(m_document);
size_t cutFaceTypeCount = (size_t)CutFace::UserDefined;
Expand Down

0 comments on commit 09ad531

Please sign in to comment.