Fix "Invalid spacing around the semicolon."

This commit is contained in:
Jaex 2018-05-15 19:02:19 +03:00
parent 6ff402b201
commit eeb7391312
3 changed files with 9 additions and 4 deletions

View file

@ -169,10 +169,13 @@ public void AddColor(Color32 pixel)
/// </summary>
public void Reduce()
{
int index;
int index = _maxColorBits - 1;
// Find the deepest level containing at least one reducible node
for (index = _maxColorBits - 1; (index > 0) && (null == _reducibleNodes[index]); index--) ;
while (index > 0 && _reducibleNodes[index] == null)
{
index--;
}
// Reduce the node most recently added to the list at level 'index'
OctreeNode node = _reducibleNodes[index];

View file

@ -42,7 +42,7 @@ public bool Printable
get
{
return Settings != null && ((PrintType == PrintType.Image && Image != null) ||
(PrintType == PrintType.Text && !string.IsNullOrEmpty(Text) && Settings.TextFont != null));
(PrintType == PrintType.Text && !string.IsNullOrEmpty(Text) && Settings.TextFont != null));
}
}

View file

@ -117,7 +117,7 @@ public void PrintPage(PrintPageEventArgs e)
// next character
int c;
for (; ; )
while (true)
{
// get next character
c = NextChar();
@ -180,7 +180,9 @@ public void PrintPage(PrintPageEventArgs e)
// if next line doesn't fit on page anymore, exit loop
if (textheight > (pageheight - lineheight) || c == Eos)
{
break;
}
}
// print footer