summaryrefslogtreecommitdiff
path: root/cocoa/Tree.m
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-02-02 12:25:31 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-02-02 12:25:31 +0000
commit618eb9d30ab41d9a216f5fae7ec6d1f9bcbbf737 (patch)
treedea391f7863a609a57fd8f5b75696248f117d7f1 /cocoa/Tree.m
parent726881c2adbbdc8f722dc1fe0016326daf7e5c44 (diff)
downloadnetsurf-618eb9d30ab41d9a216f5fae7ec6d1f9bcbbf737.tar.gz
netsurf-618eb9d30ab41d9a216f5fae7ec6d1f9bcbbf737.tar.bz2
Basic bookmark editing.
svn path=/trunk/netsurf/; revision=11601
Diffstat (limited to 'cocoa/Tree.m')
-rw-r--r--cocoa/Tree.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/Tree.m b/cocoa/Tree.m
index ce7f89100..b0f5c7c0a 100644
--- a/cocoa/Tree.m
+++ b/cocoa/Tree.m
@@ -106,8 +106,8 @@ static void tree_get_window_dimensions( int *width, int *height, void *data )
NSSize size = [delegate treeWindowSize: (Tree *)data];
- *width = cocoa_pt_to_px( size.width );
- *height = cocoa_pt_to_px( size.height );
+ if (width != NULL) *width = cocoa_pt_to_px( size.width );
+ if (height != NULL) *height = cocoa_pt_to_px( size.height );
}
@end