1+ using System . ComponentModel ;
12using System . Drawing . Drawing2D ;
23using System . Runtime . Versioning ;
34
67using LogExpert . UI . Controls ;
78
89using NLog ;
9- using System . ComponentModel ;
1010
1111namespace LogExpert . Dialogs ;
1212
@@ -246,6 +246,7 @@ private void PaintOverlays (PaintEventArgs e)
246246 foreach ( var overlay in _overlayList . Values )
247247 {
248248 var textSize = myBuffer . Graphics . MeasureString ( overlay . Bookmark . Text , _font , 300 ) ;
249+
249250 Rectangle rectBubble = new ( overlay . Position , new Size ( ( int ) textSize . Width , ( int ) textSize . Height ) ) ;
250251 rectBubble . Offset ( 60 , - ( rectBubble . Height + 40 ) ) ;
251252 rectBubble . Inflate ( 3 , 3 ) ;
@@ -254,6 +255,7 @@ private void PaintOverlays (PaintEventArgs e)
254255 myBuffer . Graphics . SetClip ( rectBubble , CombineMode . Union ) ; // Bubble to clip
255256 myBuffer . Graphics . SetClip ( rectTableHeader , CombineMode . Exclude ) ;
256257 e . Graphics . SetClip ( rectBubble , CombineMode . Union ) ;
258+
257259 RectangleF textRect = new ( rectBubble . X , rectBubble . Y , rectBubble . Width , rectBubble . Height ) ;
258260 myBuffer . Graphics . FillRectangle ( _brush , rectBubble ) ;
259261 //myBuffer.Graphics.DrawLine(_pen, overlay.Position, new Point(rect.X, rect.Y + rect.Height / 2));
0 commit comments