From 893f843bff9edc446724910e8b824fab5286444f Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Wed, 16 Oct 2024 15:24:31 -0400 Subject: [PATCH] Fix crash when creating ligands from the clipboard -- off-by-one bug Signed-off-by: Geoff Hutchison --- avogadro/qtplugins/templatetool/templatetoolwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avogadro/qtplugins/templatetool/templatetoolwidget.cpp b/avogadro/qtplugins/templatetool/templatetoolwidget.cpp index 46a5aff49a..c017672f77 100644 --- a/avogadro/qtplugins/templatetool/templatetoolwidget.cpp +++ b/avogadro/qtplugins/templatetool/templatetoolwidget.cpp @@ -42,7 +42,7 @@ enum LigandType Tetradentate = 3, Hexadentate = 4, Haptic = 5, - Clipboard = 7 + Clipboard = 6 }; TemplateToolWidget::TemplateToolWidget(QWidget* parent_)