diff: fix typo - do not report debug logging if it is disabled

GitOrigin-RevId: 55c952fbc2ed011372047dd47e6b18b9212ade51
This commit is contained in:
Aleksey Pivovarov
2019-08-01 22:02:21 +03:00
committed by intellij-monorepo-bot
parent 26ad7df525
commit 235a53649a
@@ -61,7 +61,7 @@ public abstract class DiffViewerBase implements DiffViewer, DataProvider {
@NotNull
@Override
public final FrameDiffTool.ToolbarComponents init() {
if (LOG.isDebugEnabled() && getComponent().getWidth() <= 0 || getComponent().getHeight() <= 0) {
if (LOG.isDebugEnabled() && (getComponent().getWidth() <= 0 || getComponent().getHeight() <= 0)) {
LOG.warn("Diff shown for a hidden component, initial scroll position might be invalid", new Throwable());
}