bustage fix, NSRectFromCGRect is 10.5 only.
authorjoshmoz@gmail.com
Tue, 04 Mar 2008 13:07:04 -0800
changeset 12568 2c1d5d07c771c0bc41f5c4c9978d84e685ba2232
parent 12567 d00c0a8839f9ee3a42fa2f7c8588eb4cdad594ba
child 12569 0c5c5ef442987a64bdc4094d6439367970c9363c
push idunknown
push userunknown
push dateunknown
milestone1.9b5pre
bustage fix, NSRectFromCGRect is 10.5 only.
widget/src/cocoa/nsNativeThemeCocoa.mm
--- a/widget/src/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/src/cocoa/nsNativeThemeCocoa.mm
@@ -237,17 +237,17 @@ nsNativeThemeCocoa::DrawCellWithScaling(
                                         NSControlSize controlSize,
                                         float naturalWidth, float naturalHeight,
                                         float minWidth, float minHeight,
                                         const float marginSet[][3][4],
                                         PRBool doSaveCTM)
 {
   NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
 
-  NSRect drawRect = NSRectFromCGRect(destRect);
+  NSRect drawRect = NSMakeRect(destRect.origin.x, destRect.origin.y, destRect.size.width, destRect.size.height);
 
   CGAffineTransform savedCTM;
 
   if (doSaveCTM)
     savedCTM = CGContextGetCTM(cgContext);
 
   // Set up the graphics context we've been asked to draw to.
   NSGraphicsContext* savedContext = [NSGraphicsContext currentContext];