Solved bug in rectangle-tool.
Merge TFS Changeset 1828