mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
fix rotWithShape
This commit is contained in:
@ -213,10 +213,10 @@ namespace PPTX
|
|||||||
switch (_at)
|
switch (_at)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
pReader->Skip(4); // dpi
|
pFill->dpi = pReader->GetLong();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
pReader->Skip(1); // rotWithShape
|
pFill->rotWithShape = pReader->GetBool();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -449,8 +449,7 @@ namespace PPTX
|
|||||||
|
|
||||||
m_type = blipFill;
|
m_type = blipFill;
|
||||||
Fill = pFill;
|
Fill = pFill;
|
||||||
break;
|
}break;
|
||||||
}
|
|
||||||
case FILL_TYPE_GRAD:
|
case FILL_TYPE_GRAD:
|
||||||
{
|
{
|
||||||
pReader->Skip(1);
|
pReader->Skip(1);
|
||||||
@ -536,8 +535,7 @@ namespace PPTX
|
|||||||
|
|
||||||
m_type = gradFill;
|
m_type = gradFill;
|
||||||
Fill = pFill;
|
Fill = pFill;
|
||||||
break;
|
}break;
|
||||||
}
|
|
||||||
case FILL_TYPE_PATT:
|
case FILL_TYPE_PATT:
|
||||||
{
|
{
|
||||||
pReader->Skip(1);
|
pReader->Skip(1);
|
||||||
@ -587,8 +585,8 @@ namespace PPTX
|
|||||||
|
|
||||||
m_type = pattFill;
|
m_type = pattFill;
|
||||||
Fill = pFill;
|
Fill = pFill;
|
||||||
break;
|
|
||||||
}
|
}break;
|
||||||
case FILL_TYPE_SOLID:
|
case FILL_TYPE_SOLID:
|
||||||
{
|
{
|
||||||
pReader->Skip(1); // type + len
|
pReader->Skip(1); // type + len
|
||||||
@ -600,23 +598,19 @@ namespace PPTX
|
|||||||
|
|
||||||
m_type = solidFill;
|
m_type = solidFill;
|
||||||
Fill = pFill;
|
Fill = pFill;
|
||||||
break;
|
}break;
|
||||||
}
|
|
||||||
case FILL_TYPE_NOFILL:
|
case FILL_TYPE_NOFILL:
|
||||||
{
|
{
|
||||||
m_type = noFill;
|
m_type = noFill;
|
||||||
Fill = new PPTX::Logic::NoFill();
|
Fill = new PPTX::Logic::NoFill();
|
||||||
break;
|
}break;
|
||||||
}
|
|
||||||
case FILL_TYPE_GRP:
|
case FILL_TYPE_GRP:
|
||||||
{
|
{
|
||||||
m_type = grpFill;
|
m_type = grpFill;
|
||||||
Fill = new PPTX::Logic::GrpFill();
|
Fill = new PPTX::Logic::GrpFill();
|
||||||
break;
|
}break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pReader->Seek(read_end);
|
pReader->Seek(read_end);
|
||||||
}
|
}
|
||||||
std::wstring UniFill::toXML() const
|
std::wstring UniFill::toXML() const
|
||||||
|
|||||||
Reference in New Issue
Block a user