Register style can be skipped when already registered
This commit is contained in:
1 parent
a58b340835
commit
197fb9987a
9 files changed
+84
-31
No files matched your search
@@ -119,6 +119,10 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
*/
|
||||
public function registerStyle(Style $style)
|
||||
{
|
||||
if ($style->isRegistered()) {
|
||||
return $style;
|
||||
}
|
||||
|
||||
$registeredStyle = parent::registerStyle($style);
|
||||
$this->registerFill($registeredStyle);
|
||||
$this->registerFormat($registeredStyle);
|
||||
|
||||
Reference in new issue
Block a user