projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refresh widget after changing its colour
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
ogl
/
_basic.py
diff --git
a/wxPython/wx/lib/ogl/_basic.py
b/wxPython/wx/lib/ogl/_basic.py
index bef03241e6062a4495233f3268c773f7db27d5a5..91786506192788087a37950773aecc80cf061c8d 100644
(file)
--- a/
wxPython/wx/lib/ogl/_basic.py
+++ b/
wxPython/wx/lib/ogl/_basic.py
@@
-2227,7
+2227,7
@@
class Shape(ShapeEvtHandler):
elif pt._type == CONTROL_POINT_VERTICAL:
newX1 = pt._controlPointDragStartX
newX2 = newX1 + pt._controlPointDragStartWidth
elif pt._type == CONTROL_POINT_VERTICAL:
newX1 = pt._controlPointDragStartX
newX2 = newX1 + pt._controlPointDragStartWidth
- elif pt._type == CONTROL_POINT_DIAGONAL and (keys & KEY
S
or self.GetMaintainAspectRatio()):
+ elif pt._type == CONTROL_POINT_DIAGONAL and (keys & KEY
_SHIFT
or self.GetMaintainAspectRatio()):
newH = (newX2 - newX1) * (float(pt._controlPointDragStartHeight) / pt._controlPointDragStartWidth)
if pt.GetY() > pt._controlPointDragStartY:
newY2 = newY1 + newH
newH = (newX2 - newX1) * (float(pt._controlPointDragStartHeight) / pt._controlPointDragStartWidth)
if pt.GetY() > pt._controlPointDragStartY:
newY2 = newY1 + newH