Skip to content

Commit d61c5b0

Browse files
committed
Fix help link location bug #61
1 parent c9b011e commit d61c5b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/ExcelDna.IntelliSense/ToolTipForm.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ protected override void OnPaint(PaintEventArgs e)
364364
{
365365
// Draw it in this line
366366
TextRenderer.DrawText(e.Graphics, text, font, new Point(layoutLeft + lineWidth, layoutTop + currentHeight), color, textFormatFlags);
367-
lineWidth += textSize.Width; // + 1;
368367
}
369368
else
370369
{
@@ -379,7 +378,6 @@ protected override void OnPaint(PaintEventArgs e)
379378
lineWidth = 2; // Start with a little bit of indent on these lines
380379
}
381380
TextRenderer.DrawText(e.Graphics, text, font, new Rectangle(layoutLeft + lineWidth, layoutTop + currentHeight, maxWidth, maxHeight - currentHeight), color, textFormatFlags | TextFormatFlags.EndEllipsis);
382-
lineWidth += textSize.Width;
383381
}
384382

385383
if (run.IsLink)
@@ -388,6 +386,7 @@ protected override void OnPaint(PaintEventArgs e)
388386
_linkAddress = run.LinkAddress;
389387
}
390388

389+
lineWidth += textSize.Width; // + 1;
391390
lineHeight = Math.Max(lineHeight, textSize.Height);
392391
}
393392
}

0 commit comments

Comments
 (0)