Compare commits

..

No commits in common. "9d2f1e4c90fef725abf9ad5bb8d7e98719475ab0" and "31edd35463b0575f35d047c69473e701abf75931" have entirely different histories.

2 changed files with 6 additions and 2 deletions

View File

@ -311,13 +311,13 @@ extension Element {
}
var linkedElements: [LinkedElement] {
let items = sortedItems.filter { $0.state == .standard }
let items = sortedItems
let connected = items.enumerated().map { i, element in
let previous = i+1 < items.count ? items[i+1] : nil
let next = i > 0 ? items[i-1] : nil
return (previous, element, next)
}
return connected + elements.filter { $0.state != .standard }.map { (nil, $0, nil )}
return connected + elements.filter { !$0.state.isShownInOverview }.map { (nil, $0, nil )}
}
/**

View File

@ -251,7 +251,11 @@ final class ImageGenerator {
let sourceRep = image.representations[0]
let destinationSize = NSSize(width: sourceRep.pixelsWide, height: sourceRep.pixelsHigh)
.scaledDown(to: desiredWidth)
//image.size.scaledDown(to: desiredWidth)
print("\(job.destination):")
print(" Source: \(image.size.width) x \(image.size.height)")
print(" Wanted: \(destinationSize.width) x \(destinationSize.height) (\(job.width))")
// create NSBitmapRep manually, if using cgImage, the resulting size is wrong
let rep = NSBitmapImageRep(bitmapDataPlanes: nil,
pixelsWide: Int(destinationSize.width),