فهرست منبع

Merge branch 'develop_PDFReaderProNew' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderProNew

niehaoyu 6 ماه پیش
والد
کامیت
49cf8b39f6

+ 3 - 0
PDF Office/PDF Master/Class/ChromiumTabs/src/Tab Strip/CTTabStripController.m

@@ -1759,6 +1759,9 @@ const NSTimeInterval kAnimationDuration = 0.125;
     newController.isNewTab = contents.isNewTab;
     if (modelIndex != 0) {
         newController.notFirstHome = YES;
+    }
+    if (newController.isNewTab) {
+        newController.notFirstHome = true;
     }
 	[newController setMini:[tabStripModel_ isMiniTabAtIndex:modelIndex]];
 	[newController setPinned:[tabStripModel_ isTabPinnedAtIndex:modelIndex]];

+ 3 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/CPDFFreeTextAnnotation+PDFListView.swift

@@ -135,6 +135,9 @@ import Foundation
         
         let size = string.size(withAttributes: attributes)
         self.img = nil
+        if string.length < 1 || size.width < 0.01{
+            return nil
+        }
         self.img = NSImage(size: size)
         self.img?.lockFocus()
         NSGraphicsContext.current?.imageInterpolation = .high