diff --git a/include/automask.cpp b/include/automask.cpp index 14237e81b..7cae8718b 100755 --- a/include/automask.cpp +++ b/include/automask.cpp @@ -1,4 +1,3 @@ -#include #include bool TAutomask::error_box(const char* fmt, ...) diff --git a/include/report.cpp b/include/report.cpp index 9e959f001..08a47c1ee 100755 --- a/include/report.cpp +++ b/include/report.cpp @@ -1226,6 +1226,13 @@ void TReport_field::unmap_font() _print_font->unmap(); } +void TReport_field::set_shadow_offset(int s) +{ + _shadow_offset = s; + if (s != 0 && pattern() == PAT_HOLLOW) + set_pattern(PAT_SOLID); +} + const TString& TReport_field::prescript() const { return _prescript.get(); } @@ -1792,6 +1799,7 @@ void TReport_field::save(TXmlItem& root) const // DO NOT break! default : fld.SetAttr("pattern", pattern()); + fld.SetAttr("shade_offset", shadow_offset()); break; } diff --git a/include/report.h b/include/report.h index e15ac34bb..822ab37b6 100755 --- a/include/report.h +++ b/include/report.h @@ -466,7 +466,7 @@ public: PAT_STYLE pattern() const { return _pattern; } void set_radius(int r) { _radius = r; } short radius() const { return _radius; } - void set_shadow_offset(int s) { _shadow_offset = s; } + void set_shadow_offset(int s); int shadow_offset() const { return _shadow_offset; } void set_shade_angle(int a) { _shade_angle = a; } int shade_angle() const { return _shade_angle; }