While looking into bug #1540195 I ran into some dilemma. This bug occurs when a bounding box is squeezed in between two vertical guides and makes it hard to pull the box out of its squeeze. For more details have a look at

http://sourceforge.net/tracker/index.php?func=detail&aid=1540195&group_id=93438&atid=604306

The original post includes a nice sample file. This is what's going on:

1) Both the 4 points AND the boundingbox (also 4 points) are snapping, as requested in File -> Document Properties.
2) The origin is set to be at the boundingbox edge, as requested in File -> Inkscape preferences -> Tools -> Selector

This will not work in the situation described by bwalle. When snapping the boundingbox, the origin must be at the boundingbox. When snapping the nodes, the origin must be at the farthest opposite node. This is what's going wrong: when dragging the edge at the right, both the bounding box and two additional points will be trying to snap to the left guide, even when dragging the right edge far to the right. The left side of the boundingbox is not being transformed, as it's exactly at the origin. The two additional points though are slightly off the origin, and will be transforming almost invisibly. These are causing the troubles.

It's difficult to describe exactly what's going on, the best thing to do is to just try it.

This is what we could do:
1) calculate the origin ourselves, instead of obeying the preferences. Should this option even be removed from the preferences? Why is this option available to the user at all?
2) filter the snap points in the snapmanager, to only snap the points or boundingbox edges that are being moved. Points close to the origin could
simply be discarded.
3) When dragging the boundingbox, we could feed the snapmanager only the points at the edge being dragged. But this doesn't handle the snapping of a
complex object consisting of many points
4) ?

Does anyone have any suggestions or pointers?

Regards,

Diederik van Lierop