summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-05-22 17:13:31 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2019-05-22 23:01:07 +0200
commit4a149da412dc72fa92c944edc91cc96eb7267636 (patch)
treeacf89b14caec21d97a39e242bae36d0ab7f3af7e /vcl/source/control/edit.cxx
parentcc223fa12a61ba0e580b884386a7f5d7efd0541f (diff)
VCL replace some code with common function calls
Replaces some code with calls to ApplyControlForeground and ApplyControlFont. Change-Id: I16837ad7c48ed46fa48b1f2a33a84c7e94f63482 Reviewed-on: https://gerrit.libreoffice.org/72789 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx21
1 files changed, 2 insertions, 19 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 3f20145b5736..a1b1af252dc5 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2225,7 +2225,7 @@ void Edit::StateChanged( StateChangedType nType )
}
}
- else if (nType == StateChangedType::Zoom)
+ else if ((nType == StateChangedType::Zoom) || (nType == StateChangedType::ControlFont))
{
if (!mpSubEdit)
{
@@ -2234,24 +2234,7 @@ void Edit::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if (nType == StateChangedType::ControlFont)
- {
- if (!mpSubEdit)
- {
- ApplySettings(*this);
- ImplShowCursor();
- Invalidate();
- }
- }
- else if (nType == StateChangedType::ControlForeground)
- {
- if (!mpSubEdit)
- {
- ApplySettings(*this);
- Invalidate();
- }
- }
- else if (nType == StateChangedType::ControlBackground)
+ else if ((nType == StateChangedType::ControlForeground) || (nType == StateChangedType::ControlBackground))
{
if (!mpSubEdit)
{