diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-11-08 23:17:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-11-23 15:15:28 +0100 |
commit | 3f289fef2f2b00dcca4948dd9fb2ba2c493fac6f (patch) | |
tree | a8de9d45c853a467386278498d3be3689d761277 /include | |
parent | c46f0c9f6eb07db061d2f99c61c9ea05644a78ec (diff) |
tdf#113657: fix crash when trying to format empty paragraph
by creating a function to clean line feeds and returns if it's empty or not
Change-Id: I3a744c52bdb457c92f38595463099e1cbf17a37e
Reviewed-on: https://gerrit.libreoffice.org/44513
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/fntctrl.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svx/fntctrl.hxx b/include/svx/fntctrl.hxx index ed0828e8cc3b..9b54d2ae0a3c 100644 --- a/include/svx/fntctrl.hxx +++ b/include/svx/fntctrl.hxx @@ -63,6 +63,7 @@ public: void ResetColor(); void SetBackColor( const Color& rColor ); void UseResourceText(); + bool CleanAndCheckEmpty(OUString& rText); void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& ) override; bool IsTwoLines() const; |