Skip to content

Commit 4f4a0e0

Browse files
committed
Update type casting in copyToolStripMenuItem_Click handler
Replaced type casting from Paragraph to Record in the copyToolStripMenuItem_Click method. This change ensures correct type handling and prevents potential runtime errors when accessing the Tag property.
1 parent 52990c6 commit 4f4a0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/HI2UC/PluginForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public void LoadConfigurations()
252252

253253
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
254254
{
255-
var text = ((Paragraph)listViewFixes.FocusedItem.Tag).ToString();
255+
var text = ((Record)listViewFixes.FocusedItem.Tag).ToString();
256256
Clipboard.SetText(text, TextDataFormat.UnicodeText);
257257
}
258258

0 commit comments

Comments
 (0)