diff --git a/macSVG/Cocoa Extensions/NSOutlineView_Extensions.m b/macSVG/Cocoa Extensions/NSOutlineView_Extensions.m
index 8b0ee38..2beddc5 100644
--- a/macSVG/Cocoa Extensions/NSOutlineView_Extensions.m
+++ b/macSVG/Cocoa Extensions/NSOutlineView_Extensions.m
@@ -306,7 +306,16 @@
}
else
{
- [self deselectAll:self];
+ NSPoint globalLocation = theEvent.locationInWindow;
+ NSPoint localLocation = [self convertPoint:globalLocation fromView:nil];
+ NSInteger clickedRow = [self rowAtPoint:localLocation];
+
+ NSIndexSet * selectedRowIndexes = self.selectedRowIndexes;
+
+ if ([selectedRowIndexes containsIndex:clickedRow] == NO)
+ {
+ [self deselectAll:self];
+ }
}
[super mouseDown:theEvent];
diff --git a/macSVG/MacSVG-Info.plist b/macSVG/MacSVG-Info.plist
index 53f5afd..d714460 100644
--- a/macSVG/MacSVG-Info.plist
+++ b/macSVG/MacSVG-Info.plist
@@ -105,7 +105,7 @@
CFBundleSignature
????
CFBundleVersion
- 3180
+ 3187
LSApplicationCategoryType
public.app-category.graphics-design
LSMinimumSystemVersion
diff --git a/macSVG/SVGDocument Classes/XMLOutlineController.m b/macSVG/SVGDocument Classes/XMLOutlineController.m
index 92bab2e..325011f 100644
--- a/macSVG/SVGDocument Classes/XMLOutlineController.m
+++ b/macSVG/SVGDocument Classes/XMLOutlineController.m
@@ -2893,7 +2893,6 @@
}];
}
-
//==================================================================================
// outlineView:rowViewForItem:
//==================================================================================
@@ -2991,6 +2990,7 @@ static NSString * GenerateUniqueFileNameAtPath(NSString *path, NSString *basenam
}
}
+
//==================================================================================
// outlineView:writeItems:toPasteboard:
//==================================================================================