mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Fix "Invalid spacing around the semicolon."
This commit is contained in:
parent
6ff402b201
commit
eeb7391312
3 changed files with 9 additions and 4 deletions
|
@ -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];
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue