diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-03-22 19:03:41 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-03-22 19:03:41 +0000 |
| commit | a184a53752fb8027c22e4a5d68819fd7b78a15d8 (patch) | |
| tree | aa4d7f84fc1b76dc8afde129eade5d660c9e0219 /src/display/sodipodi-ctrlrect.cpp | |
| parent | Add entry for canvas rotate step in Inkscape Preferences dialog. (diff) | |
| download | inkscape-a184a53752fb8027c22e4a5d68819fd7b78a15d8.tar.gz inkscape-a184a53752fb8027c22e4a5d68819fd7b78a15d8.zip | |
Add canvas flip. No GUI. Can be bound to keys via preferences.
(bzr r15606)
Diffstat (limited to 'src/display/sodipodi-ctrlrect.cpp')
| -rw-r--r-- | src/display/sodipodi-ctrlrect.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display/sodipodi-ctrlrect.cpp b/src/display/sodipodi-ctrlrect.cpp index b27a81ab3..075e04e6d 100644 --- a/src/display/sodipodi-ctrlrect.cpp +++ b/src/display/sodipodi-ctrlrect.cpp @@ -124,7 +124,8 @@ void CtrlRect::render(SPCanvasBuf *buf) if (_shadow_width > 0 && !_dashed) { // Offset by half stroke width (_shadow_width is in window coordinates). - Geom::Point shadow( _shadow_width/2.0, _shadow_width/2.0 ); + // Need to handle change in handedness with flips. + Geom::Point shadow( _shadow_width/2.0, (_affine.det()>0?-1:1)*_shadow_width/2.0 ); shadow *= Geom::Rotate( rotation ); if (axis_aligned) { |
