Exactly when did you arrive at the gate in relation to flight time?
That's the deciding factor, if you were not within the cut off, yes your seat would be given away.
The door being open has nothing to do with it (after all if they gave your seat away, the door would have to be open to get the person on the plane), I would guess it has to do with where the minute hand was on the clock.