mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug with non-nullptr conttext
This commit is contained in:
@ -63,6 +63,7 @@ namespace NSDocxRenderer
|
||||
m_arOutputObjects.clear();
|
||||
m_oCurrVectorGraphics.Clear();
|
||||
m_oClipVectorGraphics.Clear();
|
||||
m_oContBuilder.Clear();
|
||||
m_arCompleteObjectsXml.clear();
|
||||
}
|
||||
|
||||
|
||||
@ -875,10 +875,12 @@ namespace NSDocxRenderer
|
||||
std::vector<CContTextBuilder::cont_ptr_t> CContTextBuilder::GetConts()
|
||||
{
|
||||
return std::move(m_arConts);
|
||||
m_pCurrCont = nullptr;
|
||||
}
|
||||
std::vector<CContTextBuilder::cont_ptr_t> CContTextBuilder::GetDiacs()
|
||||
{
|
||||
return std::move(m_arDiacs);
|
||||
m_pCurrCont = nullptr;
|
||||
}
|
||||
|
||||
void CContTextBuilder::AddUnicode(
|
||||
@ -1028,4 +1030,12 @@ namespace NSDocxRenderer
|
||||
{
|
||||
m_pCurrCont = nullptr;
|
||||
}
|
||||
void CContTextBuilder::Clear()
|
||||
{
|
||||
m_pCurrCont = nullptr;
|
||||
m_arConts.clear();
|
||||
m_arDiacs.clear();
|
||||
m_oPrevFont.SetDefaultParams();
|
||||
m_oPrevBrush.SetDefaultParams();
|
||||
}
|
||||
}
|
||||
|
||||
@ -176,6 +176,7 @@ namespace NSDocxRenderer
|
||||
bool bWriteStyleRaw = false);
|
||||
|
||||
void NullCurrCont();
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
std::vector<cont_ptr_t> m_arConts;
|
||||
|
||||
@ -77,6 +77,8 @@ int main(int argc, char *argv[])
|
||||
oWorker.m_sDirectory = NSFile::GetProcessDirectory() + L"/fonts_cache";
|
||||
oWorker.m_bIsNeedThumbnails = false;
|
||||
|
||||
oWorker.m_arAdditionalFolders.push_back(L"/home/flexus/Work/fonts");
|
||||
|
||||
if (!NSDirectory::Exists(oWorker.m_sDirectory))
|
||||
NSDirectory::CreateDirectory(oWorker.m_sDirectory);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user