mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Make sure not to try to set empty text to clipboard
This commit is contained in:
@@ -275,7 +275,8 @@ namespace renderdocui.Windows
|
||||
text += string.Format("{0,-5} {1}" + Environment.NewLine, n[0].ToString(), n[1].ToString());
|
||||
}
|
||||
|
||||
Clipboard.SetText(text);
|
||||
if (text.Length > 0)
|
||||
Clipboard.SetText(text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,7 +292,8 @@ namespace renderdocui.Windows
|
||||
text += n.ToString() + Environment.NewLine;
|
||||
}
|
||||
|
||||
Clipboard.SetText(text);
|
||||
if (text.Length > 0)
|
||||
Clipboard.SetText(text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -280,7 +280,8 @@ namespace renderdocui.Controls
|
||||
text += string.Format(fmt, n[0], n[1], n[2]);
|
||||
}
|
||||
|
||||
Clipboard.SetText(text);
|
||||
if (text.Length > 0)
|
||||
Clipboard.SetText(text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -670,7 +670,8 @@ namespace renderdocui.Windows
|
||||
}
|
||||
text += Environment.NewLine;
|
||||
|
||||
Clipboard.SetText(text);
|
||||
if (text.Length > 0)
|
||||
Clipboard.SetText(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user