From 76abb0c24d7cf30f866004a07ef5ac1ae59c43e7 Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Mon, 11 Jun 2012 13:40:26 +0200
Subject: [PATCH] unbreak build

this is getting embarassing
---
 modules/mol/base/pymod/export_entity.cc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/mol/base/pymod/export_entity.cc b/modules/mol/base/pymod/export_entity.cc
index ca9e439f3..adf2c83b7 100644
--- a/modules/mol/base/pymod/export_entity.cc
+++ b/modules/mol/base/pymod/export_entity.cc
@@ -65,6 +65,11 @@ ICSEditor depr_request_ics_editor(EntityHandle e, EditMode m)
 
 
 #if OST_NUMPY_SUPPORT_ENABLED
+
+bool less_index(const mol::AtomHandle& a1, const mol::AtomHandle& a2)
+{
+  return a1.GetIndex()<a2.GetIndex();
+}
 PyObject* get_pos2(EntityHandle& entity, bool id_sorted)
 {
   npy_intp dims[]={entity.GetAtomCount(),3};
@@ -95,10 +100,7 @@ PyObject* get_pos1(EntityHandle& entity)
   return get_pos2(entity,true);
 }
 
-bool less_index(const mol::AtomHandle& a1, const mol::AtomHandle& a2)
-{
-  return a1.GetIndex()<a2.GetIndex();
-}
+
 
 #endif
 } // ns
-- 
GitLab