mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Crash fix for extended info in hover watch
This commit is contained in:
parent
95c6b1db98
commit
a277fa18cf
1 changed files with 2 additions and 2 deletions
|
@ -1543,10 +1543,10 @@ namespace IDE.ui
|
|||
|
||||
public bool Show(TextPanel textPanel, float x, float y, String displayString, String evalString)
|
||||
{
|
||||
if ((mIsShown) && (evalString.StartsWith(':')))
|
||||
if ((mIsShown) && (mListView != null) && (evalString.StartsWith(':')))
|
||||
{
|
||||
var listItem = mListView.GetRoot().GetChildAtIndex(0) as HoverListViewItem;
|
||||
bool isLiteral = listItem.Label == listItem.GetSubItem(1).Label;
|
||||
bool isLiteral = (listItem.Label == listItem.GetSubItem(1).Label) || (listItem.Label == "");
|
||||
|
||||
StringView useStr = evalString.Substring(1);
|
||||
int crPos = useStr.IndexOf('\n');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue