Commit 5b3816c0 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Remove always false conditions.

parent dff2f632
......@@ -1198,11 +1198,7 @@ void ME_UpdateScrollBar(ME_TextEditor *editor)
if (editor->scrollbars & WS_HSCROLL)
{
if (si.fMask & SIF_DISABLENOSCROLL) {
bScrollBarWillBeVisible = TRUE;
} else if (!(editor->scrollbars & WS_HSCROLL)) {
bScrollBarWillBeVisible = FALSE;
}
if (si.fMask & SIF_DISABLENOSCROLL) bScrollBarWillBeVisible = TRUE;
if (bScrollBarWasVisible != bScrollBarWillBeVisible)
ITextHost_TxShowScrollBar(editor->texthost, SB_HORZ, bScrollBarWillBeVisible);
......@@ -1253,11 +1249,7 @@ void ME_UpdateScrollBar(ME_TextEditor *editor)
if (editor->scrollbars & WS_VSCROLL)
{
if (si.fMask & SIF_DISABLENOSCROLL) {
bScrollBarWillBeVisible = TRUE;
} else if (!(editor->scrollbars & WS_VSCROLL)) {
bScrollBarWillBeVisible = FALSE;
}
if (si.fMask & SIF_DISABLENOSCROLL) bScrollBarWillBeVisible = TRUE;
if (bScrollBarWasVisible != bScrollBarWillBeVisible)
ITextHost_TxShowScrollBar(editor->texthost, SB_VERT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment