diff options
Diffstat (limited to 'src/gfx_layout.h')
-rw-r--r-- | src/gfx_layout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gfx_layout.h b/src/gfx_layout.h index f6fc3b5c7..94cbac073 100644 --- a/src/gfx_layout.h +++ b/src/gfx_layout.h @@ -19,6 +19,7 @@ #include <map> #include <string> #include <stack> +#include <vector> #ifdef WITH_ICU_LAYOUT #include "layout/ParagraphLayout.h" @@ -35,7 +36,7 @@ struct FontState { FontSize fontsize; ///< Current font size. TextColour cur_colour; ///< Current text colour. - std::stack<TextColour> colour_stack; ///< Stack of colours to assist with colour switching. + std::stack<TextColour, std::vector<TextColour>> colour_stack; ///< Stack of colours to assist with colour switching. FontState() : fontsize(FS_END), cur_colour(TC_INVALID) {} FontState(TextColour colour, FontSize fontsize) : fontsize(fontsize), cur_colour(colour) {} |