Skip to content

Commit

Permalink
Merge pull request #1172 from ONLYOFFICE/feature/macos-print-ref
Browse files Browse the repository at this point in the history
[macos] refactoring
  • Loading branch information
K0R0L authored Feb 27, 2024
2 parents 00b855d + 13b1415 commit 77c1efe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,9 @@ - (void)onCEFStartSave:(NSNotification *)notification {
- (void)printOperationDidRun:(NSPrintOperation *)printOperation success:(BOOL)success contextInfo:(void *)contextInfo {
if (m_pContext) {
m_pContext->EndPaint();

m_pContext->Release();
m_pContext = nullptr;
}
}

Expand Down
1 change: 0 additions & 1 deletion macos/ONLYOFFICE/Code/Utils/ascprinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ class ASCPrinterContext : public NSEditorApi::CAscPrinterContextBase

m_pView = nil;
isCurrentlyPrinting = false;
this->Release();
}

virtual void GetLogicalDPI(int& nDpiX, int& nDpiY)
Expand Down

0 comments on commit 77c1efe

Please sign in to comment.