freebsd-ports/science/massxpert/files/patch-plugins-src_seqToolsPlugin_seqToolsPluginDlg.cpp
John Marino 94c5d47dac science/massxpert: Fix two logical errors (found by gcc5)
There were two boolean logic issues found by gcc5 when compiling
massxpert.  One was comparing boolean output to a negative integer
(is always false) and the other applied the "not" operator in the wrong
place.  Fix provided per request by maintainer.

PR:	197823
2015-03-22 00:06:34 +00:00

11 lines
434 B
C++

--- plugins-src/seqToolsPlugin/seqToolsPluginDlg.cpp.orig 2012-12-25 21:02:43 UTC
+++ plugins-src/seqToolsPlugin/seqToolsPluginDlg.cpp
@@ -215,7 +215,7 @@ SeqToolsPluginDlg::loadDictionary ()
QStringList stringList = line.split (">", QString::SkipEmptyParts);
- if (!stringList.size () == 2)
+ if (stringList.size () != 2)
{
QMessageBox::warning (this,
tr ("Sequence Manipulation Tools Plugin"),