When i edit the image in the gallery and rotate the image, let's say, 90 degrees, all it does is switching the width and height dimensions, not the actual image itself.
I ran into this too some time ago, though I hardly use the feature. The problem should be gone after you shift-reload the page. Just some caching issue I guess...