mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
fix and correct bullets. But it's need refactoring
This commit is contained in:
@ -1594,7 +1594,7 @@ std::wstring CShapeWriter::WriteBullets(CTextPFRun *pPF, CRelsGenerator* pRels)
|
||||
buWrt.WriteString(L"\"/></a:buBlip>");
|
||||
}
|
||||
}
|
||||
else if (pPF->bulletChar.is_init())
|
||||
else if (pPF->bulletChar.is_init() && (pPF->bulletAutoNum.is_init() ? pPF->bulletAutoNum->isDefault() : true))
|
||||
{
|
||||
wchar_t bu = pPF->bulletChar.get();
|
||||
buWrt.WriteString(std::wstring(L"<a:buChar char=\""));
|
||||
|
||||
@ -123,7 +123,11 @@ namespace PPT_FORMAT
|
||||
{
|
||||
public:
|
||||
NSCommon::nullable<USHORT> startAt;
|
||||
NSCommon::nullable_string type;
|
||||
NSCommon::nullable_string type;
|
||||
|
||||
inline bool isDefault()const
|
||||
{return type.get_value_or(L"arabicPeriod") == L"arabicPeriod" &&
|
||||
(startAt.is_init() ? *startAt == 1 : true);}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user