mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Four more binary AND to logical AND operators
This commit is contained in:
parent
dd7b298a85
commit
2e10a38626
@ -10076,13 +10076,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
AutoBalanceLinesAndAllow2PlusLines();
|
||||
e.SuppressKeyPress = true;
|
||||
}
|
||||
else if (audioVisualizer != null && audioVisualizer.Visible & e.KeyData == _waveformVerticalZoom)
|
||||
else if (audioVisualizer != null && audioVisualizer.Visible && e.KeyData == _waveformVerticalZoom)
|
||||
{
|
||||
if (audioVisualizer.VerticalZoomPercent >= 0.1)
|
||||
audioVisualizer.VerticalZoomPercent -= 0.05;
|
||||
e.SuppressKeyPress = true;
|
||||
}
|
||||
else if (audioVisualizer != null && audioVisualizer.Visible & e.KeyData == _waveformVerticalZoomOut)
|
||||
else if (audioVisualizer != null && audioVisualizer.Visible && e.KeyData == _waveformVerticalZoomOut)
|
||||
{
|
||||
if (audioVisualizer.VerticalZoomPercent < 1)
|
||||
audioVisualizer.VerticalZoomPercent += 0.05;
|
||||
|
@ -292,7 +292,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
|
||||
var italicStart1 = newParagraph1.Text.IndexOf("<i>", StringComparison.Ordinal);
|
||||
if (italicStart1 >= 0 && italicStart1 < 10 & newParagraph1.Text.IndexOf("</i>", StringComparison.Ordinal) < 0 &&
|
||||
if (italicStart1 >= 0 && italicStart1 < 10 && newParagraph1.Text.IndexOf("</i>", StringComparison.Ordinal) < 0 &&
|
||||
newParagraph2.Text.Contains("</i>") && newParagraph2.Text.IndexOf("<i>", StringComparison.Ordinal) < 0)
|
||||
{
|
||||
newParagraph1.Text += "</i>";
|
||||
|
@ -119,7 +119,7 @@ namespace Nikse.SubtitleEdit.Logic.Forms
|
||||
}
|
||||
|
||||
var indexOfItalicOpen1 = newParagraph1.Text.IndexOf("<i>", StringComparison.Ordinal);
|
||||
if (indexOfItalicOpen1 >= 0 && indexOfItalicOpen1 < 10 & newParagraph1.Text.IndexOf("</i>", StringComparison.Ordinal) < 0 &&
|
||||
if (indexOfItalicOpen1 >= 0 && indexOfItalicOpen1 < 10 && newParagraph1.Text.IndexOf("</i>", StringComparison.Ordinal) < 0 &&
|
||||
newParagraph2.Text.Contains("</i>") && newParagraph2.Text.IndexOf("<i>", StringComparison.Ordinal) < 0)
|
||||
{
|
||||
newParagraph1.Text += "</i>";
|
||||
|
Loading…
Reference in New Issue
Block a user