mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Eliminated most build errors (gcc,linux,wxGTK).
What is left is mostly:
- warning: converting double to int
-> add a cast/to_int or ignore
- wrong initialization order in ctor
-> just swap the order to match the class
- errors about wxCursors
-> add a function loadResourceCursor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@183 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -160,10 +160,10 @@ void SymbolBasicShapeEditor::makeShape(const Vector2D& a, const Vector2D& b, boo
|
||||
// constrain
|
||||
Vector2D size = b - a;
|
||||
if (constrained) {
|
||||
if (abs(size.x) > abs(size.y)) {
|
||||
size.y = sgn(size.y) * abs(size.x);
|
||||
if (fabs(size.x) > fabs(size.y)) {
|
||||
size.y = sgn(size.y) * fabs(size.x);
|
||||
} else {
|
||||
size.x = sgn(size.x) * abs(size.y);
|
||||
size.x = sgn(size.x) * fabs(size.y);
|
||||
}
|
||||
}
|
||||
// make shape
|
||||
|
||||
Reference in New Issue
Block a user