Skip to content

Commit

Permalink
Now properly removes the loupe while in page selection mode. Pages ar…
Browse files Browse the repository at this point in the history
…e also now properly highlighted.
  • Loading branch information
Alexander Rauchfuss committed Mar 20, 2010
1 parent c054ac7 commit 37b137a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Session/TSSTSessionWindowController.m
Expand Up @@ -430,6 +430,7 @@ - (void)refreshLoupePanel
&& [[self window] isKeyWindow]
&& pageSelectionInProgress == None)
{
NSLog(@"loupe");
if(![loupeWindow isVisible])
{
[[self window] addChildWindow: loupeWindow ordered: NSWindowAbove];
Expand Down Expand Up @@ -866,7 +867,9 @@ - (BOOL)pageSelectionCanCrop
- (void)changeViewForSelection
{
savedZoom = [[session valueForKey: TSSTZoomLevel] floatValue];
[self scaleToWindow];
[pageScrollView setHasVerticalScroller: NO];
[pageScrollView setHasHorizontalScroller: NO];
[self refreshLoupePanel];
NSSize imageSize = [pageView combinedImageSizeForZoom: 1];
NSSize scrollerBounds = [[pageView enclosingScrollView] bounds].size;
scrollerBounds.height -= 20;
Expand Down Expand Up @@ -941,8 +944,7 @@ - (void)selectedPage:(NSInteger)selection withCropRect:(NSRect)cropRect

[session setValue: [NSNumber numberWithFloat: savedZoom] forKey: TSSTZoomLevel];
pageSelectionInProgress = None;
[self resizeView];
[self refreshLoupePanel];
[self scaleToWindow];
}


Expand Down

0 comments on commit 37b137a

Please sign in to comment.