mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-08-17 06:20:23 +03:00
Fix build warning message with mono
This commit is contained in:
parent
92a3502534
commit
ad920317b9
@ -174,7 +174,7 @@ namespace XSDDiagram.Rendering
|
||||
foregroundInheritPen.StartCap = LineCap.Round;
|
||||
foregroundInheritPen.EndCap = LineCap.Round;
|
||||
|
||||
bool showDocumentation = (drawingItem.Diagram.ShowDocumentation && drawingItem.DocumentationBox != null);
|
||||
bool showDocumentation = (drawingItem.Diagram.ShowDocumentation && !drawingItem.DocumentationBox.IsEmpty);
|
||||
if (drawingItem.ChildElements.Count == 1 && !showDocumentation)
|
||||
{
|
||||
int parentMidleY = drawingItem.ScaleInt(drawingItem.Location.Y + drawingItem.Size.Height / 2);
|
||||
@ -496,7 +496,7 @@ namespace XSDDiagram.Rendering
|
||||
}
|
||||
|
||||
// Draw Documentation
|
||||
if (drawingItem.Diagram.ShowDocumentation && drawingItem.DocumentationBox != null)
|
||||
if (drawingItem.Diagram.ShowDocumentation && !drawingItem.DocumentationBox.IsEmpty)
|
||||
{
|
||||
string text = drawingItem.GetTextDocumentation();
|
||||
if (text != null)
|
||||
|
@ -583,7 +583,7 @@ namespace XSDDiagram.Rendering
|
||||
case DiagramAlignement.Center:
|
||||
_location.Y = _boundingBox.Y +
|
||||
(_boundingBox.Height - _size.Height) / 2;
|
||||
if(_diagram.ShowDocumentation && _documentationBox != null)
|
||||
if(_diagram.ShowDocumentation && !_documentationBox.IsEmpty)
|
||||
{
|
||||
_location.Y = _boundingBox.Y +
|
||||
(_boundingBox.Height - (2 * _padding.Height + _documentationBox.Height)) / 2;
|
||||
@ -630,7 +630,7 @@ namespace XSDDiagram.Rendering
|
||||
|
||||
_elementBox.Offset(_location);
|
||||
|
||||
if (_documentationBox != null)
|
||||
if (!_documentationBox.IsEmpty)
|
||||
{
|
||||
if(_diagram.Alignement == DiagramAlignement.Far)
|
||||
_documentationBox.Offset(_location.X, _location.Y - _documentationBox.Height - _padding.Height);
|
||||
|
@ -111,7 +111,7 @@ namespace XSDDiagram.Rendering
|
||||
|
||||
public override void Render(DiagramItem drawingItem)
|
||||
{
|
||||
bool showDocumentation = drawingItem.Diagram.ShowDocumentation && drawingItem.DocumentationBox != null && _graphics != null;
|
||||
bool showDocumentation = drawingItem.Diagram.ShowDocumentation && !drawingItem.DocumentationBox.IsEmpty && _graphics != null;
|
||||
|
||||
//if (drawingItem.diagram.ShowBoundingBox)
|
||||
//{
|
||||
|
Loading…
Reference in New Issue
Block a user