Skip to content

Commit

Permalink
fix bug #66842
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaSubbotina committed Mar 13, 2024
1 parent 245ba21 commit a6370ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 17 additions & 1 deletion OdfFile/DataTypes/iconset_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,18 @@ std::wostream & operator << (std::wostream & _Wostream, const iconset_type & _Va
case iconset_type::Rating5:
_Wostream << L"5Rating";
break;
default:
case iconset_type::Boxes5:
_Wostream << L"5Boxes";
break;
case iconset_type::Triangles3:
_Wostream << L"3Triangles";
break;
case iconset_type::Stars3:
_Wostream << L"3Stars";
break;
default:
_Wostream << L"3Arrows";
break;
}
return _Wostream;
}
Expand Down Expand Up @@ -137,6 +147,12 @@ iconset_type iconset_type::parse(const std::wstring & Str)
return iconset_type( Quarters5 );
else if (tmp == L"5rating")
return iconset_type( Rating5 );
else if (tmp == L"5Boxes")
return iconset_type( Boxes5 );
else if (tmp == L"3Stars")
return iconset_type(Stars3);
else if (tmp == L"3Triangles")
return iconset_type(Triangles3);
else
{
return iconset_type( Arrows3 );
Expand Down
5 changes: 4 additions & 1 deletion OdfFile/DataTypes/iconset_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ class iconset_type
Arrows5,
Arrows5Gray,
Quarters5,
Rating5
Rating5,
Stars3,
Triangles3,
Boxes5
};

iconset_type() {}
Expand Down

0 comments on commit a6370ec

Please sign in to comment.