|
@@ -249,7 +249,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
if (IsLoadedData)
|
|
|
{
|
|
|
CTextAttribute cTextAttribute = cPDFAnnotation.GetTextAttribute();
|
|
|
- cTextAttribute.FontSize = (float)(sender as ComboBox).SelectedItem;
|
|
|
+ cTextAttribute.FontSize = Convert.ToSingle((sender as ComboBox).SelectedItem);
|
|
|
cPDFAnnotation.SetTextAttribute(cTextAttribute);
|
|
|
pdfViewerControl.PDFViewTool.GetCPDFViewer().UpDataAnnotFrame();
|
|
|
}
|
|
@@ -331,7 +331,10 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void ActionContentText_TextChanged(object sender, TextChangedEventArgs e)
|
|
|
{
|
|
|
- AddAction();
|
|
|
+ if (IsLoadedData)
|
|
|
+ {
|
|
|
+ AddAction();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|