From b945974c5a523d8c2c932c1a7c6bd2b9a0ad990f Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Mon, 9 Oct 2023 17:52:01 -0400 Subject: [PATCH] Fix compile error Signed-off-by: Geoff Hutchison --- avogadro/qtplugins/aligntool/aligntool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avogadro/qtplugins/aligntool/aligntool.cpp b/avogadro/qtplugins/aligntool/aligntool.cpp index c7109ba6a3..42d597937a 100644 --- a/avogadro/qtplugins/aligntool/aligntool.cpp +++ b/avogadro/qtplugins/aligntool/aligntool.cpp @@ -47,7 +47,8 @@ using QtGui::RWAtom; AlignTool::AlignTool(QObject* parent_) : QtGui::ToolPlugin(parent_), m_activateAction(new QAction(this)), - m_molecule(nullptr), m_toolWidget(nullptr) + m_molecule(nullptr), m_toolWidget(nullptr), m_renderer(nullptr), + m_alignType(0), m_axis(0) { m_activateAction->setText(tr("Align")); m_activateAction->setIcon(QIcon(":/icons/align.png")); @@ -77,7 +78,6 @@ QWidget* AlignTool::toolWidget() const // Combo box to select desired aixs to align to QComboBox* comboAxis = new QComboBox(m_toolWidget); - m_axis = 0; comboAxis->addItem("x"); comboAxis->addItem("y"); comboAxis->addItem("z");