'Commit the current geometry of the item to the document.
.. note:: Does nothing if the actual geometry is not changed.'

def commit(self):

    line = self.control.line()
    (p1, p2) = (line.p1(), line.p2())
    if (self.item.line() != self.savedLine):
        command = commands.SetAttrCommand(self.annotation, 'geometry', ((p1.x(), p1.y()), (p2.x(), p2.y())), name='Edit    arrow    geometry')
        self.document.undoStack().push(command)
        self.savedLine = self.item.line()
