summaryrefslogtreecommitdiff
path: root/sdext/source/presenter
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter')
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.cxx8
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.hxx2
2 files changed, 3 insertions, 7 deletions
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
index 6a08ed838d9f..07bbc49e9b3e 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
@@ -326,19 +326,15 @@ bool PresenterPaneBorderPainter::ProvideTheme (const Reference<rendering::XCanva
return bModified;
}
-bool PresenterPaneBorderPainter::ProvideTheme()
+void PresenterPaneBorderPainter::ProvideTheme()
{
if (mpTheme.get() == nullptr)
{
// Create a theme without bitmaps (no canvas => no bitmaps).
- return ProvideTheme(nullptr);
+ ProvideTheme(nullptr);
}
- else
- {
// When there already is a theme then without a canvas we can not
// add anything new.
- return false;
- }
}
void PresenterPaneBorderPainter::SetTheme (const std::shared_ptr<PresenterTheme>& rpTheme)
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.hxx b/sdext/source/presenter/PresenterPaneBorderPainter.hxx
index a89103091be4..324f7e911821 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.hxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.hxx
@@ -135,7 +135,7 @@ private:
*/
bool ProvideTheme (
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas);
- bool ProvideTheme();
+ void ProvideTheme();
void ThrowIfDisposed() const
throw (css::lang::DisposedException);