diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-02 12:25:31 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-02 12:25:31 +0000 |
commit | 618eb9d30ab41d9a216f5fae7ec6d1f9bcbbf737 (patch) | |
tree | dea391f7863a609a57fd8f5b75696248f117d7f1 /cocoa/Tree.m | |
parent | 726881c2adbbdc8f722dc1fe0016326daf7e5c44 (diff) | |
download | netsurf-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.m | 4 |
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 |