diff options
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 |