|
@@ -436,7 +436,10 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
FocusPDFViewTool = splitViewerTool;
|
|
|
break;
|
|
|
}
|
|
|
- FocusPDFViewToolChanged?.Invoke(this, EventArgs.Empty);
|
|
|
+ if (FocusPDFViewTool.IsLoaded&& FocusPDFViewTool.GetCPDFViewer()?.CurrentRenderFrame != null)
|
|
|
+ {
|
|
|
+ FocusPDFViewToolChanged?.Invoke(this, EventArgs.Empty);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|