summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/func/fuformatpaintbrush.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx
index 9bbd30939d53..930e75233f32 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -40,17 +40,13 @@
namespace
{
// Paragraph properties are pasted if the selection contains a whole paragraph
-// or there was no selection at all (i.e. just a left click)
bool ShouldPasteParaFormatPerSelection(const OutlinerView* pOLV)
{
if(!pOLV)
return true;
- if(!pOLV->GetEditView().HasSelection())
- return true;
-
if(!pOLV->GetEditView().IsSelectionWithinSinglePara())
- return true;
+ return false;
return pOLV->GetEditView().IsSelectionFullPara();
}