aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPGeometryDataView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPGeometryDataView.m')
-rw-r--r--Source/SPGeometryDataView.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/SPGeometryDataView.m b/Source/SPGeometryDataView.m
index 10cf5b4a..d68bb57b 100644
--- a/Source/SPGeometryDataView.m
+++ b/Source/SPGeometryDataView.m
@@ -79,9 +79,8 @@
x_min*=zoom_factor;
y_min*=zoom_factor;
- if ( self = [super initWithFrame:NSMakeRect(0,0,width+margin_offset*2,height+margin_offset*2)] )
+ if ( (self = [super initWithFrame:NSMakeRect(0,0,width+margin_offset*2,height+margin_offset*2)]) )
{
- ;
}
lineColor = [NSColor blackColor];
@@ -263,7 +262,6 @@
{
if(!type || ![type length] || !coordinates || ![coordinates count]) return nil;
- NSSize mySize = self.bounds.size;
NSRect myBounds = [self bounds];
return [self dataWithPDFInsideRect:myBounds];