qol: formatting
This commit is contained in:
@@ -20,9 +20,8 @@ namespace Disco.Services.Expressions
|
||||
{
|
||||
if (expressionParseException == null)
|
||||
return null;
|
||||
else
|
||||
if (evaluateParseException == null)
|
||||
evaluateParseException = EvaluateExpressionParseException.FromRecognitionException(expressionParseException, Source);
|
||||
else if (evaluateParseException == null)
|
||||
evaluateParseException = EvaluateExpressionParseException.FromRecognitionException(expressionParseException, Source);
|
||||
return evaluateParseException;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -24,10 +24,10 @@ namespace Disco.Services.Expressions.Extensions.ImageResultImplementations
|
||||
public override MemoryStream GetImage(out int width, out int height)
|
||||
{
|
||||
var image = Image;
|
||||
|
||||
|
||||
width = image.Width;
|
||||
height = image.Height;
|
||||
|
||||
|
||||
return OutputBitmapImage(image);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -53,7 +53,8 @@ namespace Disco.Services.Expressions.Extensions.ImageResultImplementations
|
||||
{
|
||||
maxWidth = images.Sum(i => i.Width);
|
||||
maxHeight = images.Max(i => i.Height);
|
||||
}else if (MontageVerticalLayout)
|
||||
}
|
||||
else if (MontageVerticalLayout)
|
||||
{
|
||||
maxWidth = images.Max(i => i.Width);
|
||||
maxHeight = images.Sum(i => i.Height);
|
||||
|
||||
@@ -2,14 +2,14 @@ using System.Collections;
|
||||
|
||||
namespace Disco.Services.Expressions
|
||||
{
|
||||
public interface IExpressionPart
|
||||
{
|
||||
public interface IExpressionPart
|
||||
{
|
||||
string RawSource { get; set; }
|
||||
string Source { get; set; }
|
||||
string Source { get; set; }
|
||||
bool ErrorsAllowed { get; set; }
|
||||
bool ParseError { get; }
|
||||
string ParseErrorMessage { get; }
|
||||
bool IsDynamic { get; set; }
|
||||
object Evaluate(object ExpressionContext, IDictionary Variables);
|
||||
}
|
||||
bool IsDynamic { get; set; }
|
||||
object Evaluate(object ExpressionContext, IDictionary Variables);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user