Commit bb37a6df authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

(1.0.1.200): ASCOfficeOdfFile

поправлена конвертация диаграмм с пустыми сериями

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@57127 954022d7-b5bf-4e40-9824-e11837661b57
parent 0ef15a02
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
//1 //1
//0 //0
//1 //1
//199 //200
#define INTVER 1,0,1,199 #define INTVER 1,0,1,200
#define STRVER "1,0,1,199\0" #define STRVER "1,0,1,200\0"
...@@ -194,6 +194,11 @@ void chart_build::oox_convert(oox::oox_chart_context & chart) ...@@ -194,6 +194,11 @@ void chart_build::oox_convert(oox::oox_chart_context & chart)
int series_id =0; int series_id =0;
if (series_.empty())
{
chart.add_chart(class_);
}
BOOST_FOREACH(series & s, series_) BOOST_FOREACH(series & s, series_)
{ {
if (s.class_!=last_set_type) if (s.class_!=last_set_type)
......
...@@ -9,7 +9,7 @@ border_style::border_style(const std::wstring & Value) : initialized_(false), no ...@@ -9,7 +9,7 @@ border_style::border_style(const std::wstring & Value) : initialized_(false), no
std::wstring tmp = boost::algorithm::trim_copy(Value); std::wstring tmp = boost::algorithm::trim_copy(Value);
boost::algorithm::to_lower(tmp); boost::algorithm::to_lower(tmp);
if (L"none" == tmp) if (L"none" == tmp || tmp.length() < 1)
{ {
none_ = true; none_ = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment