summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/xf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/axlsx/stylesheet/xf.rb')
-rw-r--r--lib/axlsx/stylesheet/xf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/xf.rb b/lib/axlsx/stylesheet/xf.rb
index 6d4aab66..0ea97f20 100644
--- a/lib/axlsx/stylesheet/xf.rb
+++ b/lib/axlsx/stylesheet/xf.rb
@@ -138,8 +138,8 @@ module Axlsx
str << '<xf '
serialized_attributes str
str << '>'
- alignment.to_xml_string(str) if self.alignment
- protection.to_xml_string(str) if self.protection
+ alignment.to_xml_string(str) if alignment
+ protection.to_xml_string(str) if protection
str << '</xf>'
end
end