summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_widgetacc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_widgetacc.cpp')
-rw-r--r--xfa/fxfa/cxfa_widgetacc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp
index 7dab15926a..0aa91fbefb 100644
--- a/xfa/fxfa/cxfa_widgetacc.cpp
+++ b/xfa/fxfa/cxfa_widgetacc.cpp
@@ -1489,7 +1489,7 @@ void CXFA_WidgetAcc::SetImageEditImage(
}
RetainPtr<CFGAS_GEFont> CXFA_WidgetAcc::GetFDEFont() {
- WideStringView wsFontName = L"Courier";
+ WideString wsFontName = L"Courier";
uint32_t dwFontStyle = 0;
if (CXFA_FontData fontData = GetFontData(false)) {
if (fontData.IsBold())
@@ -1500,8 +1500,8 @@ RetainPtr<CFGAS_GEFont> CXFA_WidgetAcc::GetFDEFont() {
}
auto* pDoc = GetDoc();
- return pDoc->GetApp()->GetXFAFontMgr()->GetFont(pDoc, wsFontName,
- dwFontStyle);
+ return pDoc->GetApp()->GetXFAFontMgr()->GetFont(
+ pDoc, wsFontName.AsStringView(), dwFontStyle);
}
float CXFA_WidgetAcc::GetFontSize() {