This commit is contained in:
Gaetan Delannay 2014-06-23 16:48:32 +02:00
parent f8f3c0e865
commit f7eaed817e
2 changed files with 12 additions and 10 deletions

View file

@ -285,7 +285,7 @@ class MemoryBuffer(Buffer):
return res
def isMainElement(self, elem):
'''Is p_elem the main elemen within this buffer?'''
'''Is p_elem the main element within this buffer?'''
mainElem = self.getMainElement()
if not mainElem: return
if hasattr(mainElem, 'OD'): mainElem = mainElem.OD.elem