diff --git a/avogadro/qtplugins/surfaces/surfaces.cpp b/avogadro/qtplugins/surfaces/surfaces.cpp index 05f5cd6586..87071bced1 100644 --- a/avogadro/qtplugins/surfaces/surfaces.cpp +++ b/avogadro/qtplugins/surfaces/surfaces.cpp @@ -144,7 +144,7 @@ bool Surfaces::handleCommand(const QString& command, const QVariantMap& options) cubeResolution = res; } if (options.contains("isovalue") && - options["isolvalue"].canConvert()) { + options["isovalue"].canConvert()) { bool ok; float iso = options["isovalue"].toFloat(&ok); if (ok) @@ -165,7 +165,7 @@ bool Surfaces::handleCommand(const QString& command, const QVariantMap& options) expression = name.remove("homo", Qt::CaseInsensitive); } else if (name.contains("lumo", Qt::CaseInsensitive)) { index = homo + 1; // again modified by the expression - expression = name.remove("homo", Qt::CaseInsensitive); + expression = name.remove("lumo", Qt::CaseInsensitive); } // modify HOMO / LUMO based on "+ number" or "- number" if (expression.contains('-')) {