Index: fpdfsdk/src/fxedit/fxet_edit.cpp |
diff --git a/fpdfsdk/src/fxedit/fxet_edit.cpp b/fpdfsdk/src/fxedit/fxet_edit.cpp |
index c7f7ce5b0433db3a1d64553f2a7a270ad5a91cd5..0015c0f4ed40f0b7932ed094a1fad8276c8a92b5 100644 |
--- a/fpdfsdk/src/fxedit/fxet_edit.cpp |
+++ b/fpdfsdk/src/fxedit/fxet_edit.cpp |
@@ -745,7 +745,7 @@ void CFXEU_Clear::Undo() |
{ |
m_pEdit->SelectNone(); |
m_pEdit->SetCaret(m_wrSel.BeginPos); |
- m_pEdit->InsertText(m_swText, DEFAULT_CHARSET, NULL,NULL,FALSE,TRUE); |
+ m_pEdit->InsertText(m_swText.c_str(), DEFAULT_CHARSET, NULL, NULL, FALSE, TRUE); |
m_pEdit->SetSel(m_wrSel.BeginPos,m_wrSel.EndPos); |
} |
} |
@@ -833,7 +833,7 @@ void CFXEU_InsertText::Redo() |
{ |
m_pEdit->SelectNone(); |
m_pEdit->SetCaret(m_wpOld); |
- m_pEdit->InsertText(m_swText, m_nCharset,&m_SecProps, &m_WordProps,FALSE,TRUE); |
+ m_pEdit->InsertText(m_swText.c_str(), m_nCharset, &m_SecProps, &m_WordProps, FALSE, TRUE); |
} |
} |