Fix level's custom styles not loading
This commit is contained in:
parent
25f6898350
commit
01b681cccc
1 changed files with 16 additions and 2 deletions
|
@ -955,7 +955,14 @@ TRasterImagePatternStrokeStyle::TRasterImagePatternStrokeStyle(
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
TColorStyle *TRasterImagePatternStrokeStyle::clone() const {
|
TColorStyle *TRasterImagePatternStrokeStyle::clone() const {
|
||||||
return new TRasterImagePatternStrokeStyle(*this);
|
TRasterImagePatternStrokeStyle *theClone =
|
||||||
|
new TRasterImagePatternStrokeStyle();
|
||||||
|
theClone->m_level = this->m_level;
|
||||||
|
theClone->m_name = this->m_name;
|
||||||
|
theClone->m_space = this->m_space;
|
||||||
|
theClone->m_rotation = this->m_rotation;
|
||||||
|
if (!this->m_basePath.isEmpty()) theClone->m_basePath = this->m_basePath;
|
||||||
|
return theClone;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -1367,7 +1374,14 @@ TVectorImagePatternStrokeStyle::TVectorImagePatternStrokeStyle(
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
TColorStyle *TVectorImagePatternStrokeStyle::clone() const {
|
TColorStyle *TVectorImagePatternStrokeStyle::clone() const {
|
||||||
return new TVectorImagePatternStrokeStyle(*this);
|
TVectorImagePatternStrokeStyle *theClone =
|
||||||
|
new TVectorImagePatternStrokeStyle();
|
||||||
|
theClone->m_level = this->m_level;
|
||||||
|
theClone->m_name = this->m_name;
|
||||||
|
theClone->m_space = this->m_space;
|
||||||
|
theClone->m_rotation = this->m_rotation;
|
||||||
|
if (!this->m_basePath.isEmpty()) theClone->m_basePath = this->m_basePath;
|
||||||
|
return theClone;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue