OK?

Index: patches/patch-xdrawchem_molecule_obmol_cpp
===================================================================
RCS file: /cvs/ports/x11/xdrawchem/patches/patch-xdrawchem_molecule_obmol_cpp,v
retrieving revision 1.1
diff -u -p -r1.1 patch-xdrawchem_molecule_obmol_cpp
--- patches/patch-xdrawchem_molecule_obmol_cpp  22 May 2017 18:28:05 -0000      
1.1
+++ patches/patch-xdrawchem_molecule_obmol_cpp  15 Apr 2018 18:35:22 -0000
@@ -12,3 +12,21 @@ Index: xdrawchem/molecule_obmol.cpp
  
  };
  
+@@ -198,7 +198,7 @@ OBMol * Molecule::convertToOBMol() {
+     atom.SetType( type );
+ 
+     if (!obmol->AddAtom(atom))
+-      return(false);
++      return(0);
+     atom.Clear();
+   }
+ 
+@@ -212,7 +212,7 @@ OBMol * Molecule::convertToOBMol() {
+     bst = tmp_bond->Stereo();
+     if (bst == STEREO_UP) flag |= OB_WEDGE_BOND;
+     if (bst == STEREO_DOWN) flag |= OB_HASH_BOND;
+-    if (!obmol->AddBond(start,end,order,flag)) return(false);
++    if (!obmol->AddBond(start,end,order,flag)) return(0);
+   }
+ 
+   obmol->EndModify();

Reply via email to