Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/xlnt/drawing/spreadsheet_drawing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace drawing {
class XLNT_API spreadsheet_drawing
{
public:
spreadsheet_drawing();
spreadsheet_drawing(xml::parser &parser);
void serialize(xml::serializer &serializer);

Expand Down
8 changes: 8 additions & 0 deletions include/xlnt/styles/format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ class xlsx_consumer;
class XLNT_API format
{
public:
/// <summary>
/// Default contructor.
/// </summary>
format()
: d_(nullptr)
{
};

/// <summary>
/// Returns the alignment of this format.
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions source/drawing/spreadsheet_drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ std::vector<std::string> copy_and_extract(xml::parser &p, xml::serializer &s)
namespace xlnt {
namespace drawing {

spreadsheet_drawing::spreadsheet_drawing()
{
embed_ids_ = std::vector<std::string>();
serialized_value_ = std::string();
}

spreadsheet_drawing::spreadsheet_drawing(xml::parser &parser)
{
std::ostringstream serialization_stream;
Expand Down