1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Cleaned up some obscure compiler warnings and added some JSON unit tests.

This commit is contained in:
Julian Storer 2011-06-12 19:52:58 +01:00
parent 796247483a
commit 2009753eac
41 changed files with 298 additions and 178 deletions

View file

@ -77,15 +77,15 @@ void ShapeButton::setShape (const Path& newShape,
if (resizeNowToFitThisShape)
{
Rectangle<float> bounds (shape.getBounds());
Rectangle<float> newBounds (shape.getBounds());
if (hasShadow)
bounds.expand (4.0f, 4.0f);
newBounds.expand (4.0f, 4.0f);
shape.applyTransform (AffineTransform::translation (-bounds.getX(), -bounds.getY()));
shape.applyTransform (AffineTransform::translation (-newBounds.getX(), -newBounds.getY()));
setSize (1 + (int) (bounds.getWidth() + outlineWidth),
1 + (int) (bounds.getHeight() + outlineWidth));
setSize (1 + (int) (newBounds.getWidth() + outlineWidth),
1 + (int) (newBounds.getHeight() + outlineWidth));
}
}