diff options
Diffstat (limited to 'vcl/unx/gtk/a11y/atktextattributes.cxx')
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx index 1ee48d456c17..5a1819b2319f 100644 --- a/vcl/unx/gtk/a11y/atktextattributes.cxx +++ b/vcl/unx/gtk/a11y/atktextattributes.cxx @@ -387,7 +387,7 @@ Adjust2Justification(const uno::Any& rAny) { const gchar * value = nullptr; - switch( rAny.get<short>() ) + switch( (style::ParagraphAdjust)rAny.get<short>() ) { case style::ParagraphAdjust_LEFT: value = "left"; @@ -419,7 +419,7 @@ Adjust2Justification(const uno::Any& rAny) static bool Justification2Adjust( uno::Any& rAny, const gchar * value ) { - short nParagraphAdjust; + style::ParagraphAdjust nParagraphAdjust; if( strncmp( value, STRNCMP_PARAM( "left" ) ) == 0 ) nParagraphAdjust = style::ParagraphAdjust_LEFT; @@ -432,7 +432,7 @@ Justification2Adjust( uno::Any& rAny, const gchar * value ) else return false; - rAny <<= nParagraphAdjust; + rAny <<= (short)nParagraphAdjust; return true; } |