From dea1267bcbe1076d79d41ccff048eaad18aa99a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Wed, 15 Mar 2017 16:05:55 -0300 Subject: [PATCH] cacheWidth should be protected. --HG-- branch : dev --- include/eepp/graphics/text.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/eepp/graphics/text.hpp b/include/eepp/graphics/text.hpp index d7498aa21..a86220435 100644 --- a/include/eepp/graphics/text.hpp +++ b/include/eepp/graphics/text.hpp @@ -99,9 +99,6 @@ class EE_API Text { /** @return The number of lines that the cached text contains */ const int& getNumLines(); - /** Force to cache the width of the current text */ - void cacheWidth(); - void setStyleConfig( const FontStyleConfig& styleConfig ); protected: void ensureGeometryUpdate(); @@ -133,6 +130,9 @@ class EE_API Text { std::vector mOutlineVertices; std::vector mOutlineColors; std::vector mLinesWidth; + + /** Force to cache the width of the current text */ + void cacheWidth(); }; }}