AnsweredAssumed Answered

EditGeometry Rotation on Rectangle Causes NullReferenceException

Question asked by rcoodey on May 16, 2012
Latest reply on May 17, 2012 by JNery-esristaff
If I create a DrawMode.Rectangle graphic, start an EditGeometry on it, move the rectangle, then try and rotate it... it throws a NullReferenceException.

If I don't move the rectangle first, the rotation works fine.  But after moving the rectangle, then rotating it crashes.  This does not seem to happen for any of the other DrawMode types... just the rectangle. 

Is this a known bug? Any workarounds?

I am running version 2.4 of the WPF API on .NET 4.

Thanks a lot for any info!

*UPDATE - The rectangle's Graphic.Geometry is of type Envelope... all others are of type Polygon.  So seems the problem is with rotating envelopes after a move.

Outcomes