diff options
author | Jaskaran Singh <jvsg1303@gmail.com> | 2016-08-05 00:09:10 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-18 00:15:18 +0200 |
commit | 9cab12f925e5b6656d9e8e0c58f81e0833dc12a6 (patch) | |
tree | 2626be98f27ea62b2e1d7e8bbf10f4554a6ab870 /sc | |
parent | 759b2fcb2ff3e916e7f69d182c74bac03e9f2da3 (diff) |
Initialize border attributes in orcus interface
Change-Id: I99994147830e96bea07f52fc6f2575f05cb0a40f
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/inc/orcusinterface.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/orcus/interface.cxx | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/filter/inc/orcusinterface.hxx b/sc/source/filter/inc/orcusinterface.hxx index c6d3d5a1a2ed..e467b85390fa 100644 --- a/sc/source/filter/inc/orcusinterface.hxx +++ b/sc/source/filter/inc/orcusinterface.hxx @@ -299,6 +299,8 @@ private: SvxBorderStyle mestyle; Color maColor; double mnWidth; + + border_line(); }; std::map<orcus::spreadsheet::border_direction_t, border_line> border_lines; diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index e6dedef3fb12..c5569a5373ce 100644 --- a/sc/source/filter/orcus/interface.cxx +++ b/sc/source/filter/orcus/interface.cxx @@ -847,6 +847,14 @@ void ScOrcusStyles::protection::applyToItemSet(SfxItemSet& rSet) const ScOrcusStyles::border::border(): mbHasBorderAttr(false) { + border_line(); +} + +ScOrcusStyles::border::border_line::border_line(): + mestyle(::com::sun::star::table::BorderLineStyle::SOLID), + maColor(COL_WHITE), + mnWidth(0) +{ } namespace { |