canvas: replacement of the bitwise OR operator with the logical one

Bitwise logical operators do not perform short-circuiting.
This commit is contained in:
Mira Grudzinska 2021-02-28 13:01:16 +01:00 committed by Hermet Park
parent d522c9d45e
commit 692e100f9a

View file

@ -82,7 +82,7 @@ struct Canvas::Impl
Array<RenderData> clips; Array<RenderData> clips;
auto flag = RenderUpdateFlag::None; auto flag = RenderUpdateFlag::None;
if (refresh | force) flag = RenderUpdateFlag::All; if (refresh || force) flag = RenderUpdateFlag::All;
//Update single paint node //Update single paint node
if (paint) { if (paint) {