Merge "CopyableLabel: Avoid creating Flash movie for empty string"
This commit is contained in:
commit
5b89426048
@ -130,7 +130,7 @@ public class CopyableLabel extends Composite implements HasText {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void embedMovie() {
|
private void embedMovie() {
|
||||||
if (flashEnabled && UserAgent.hasFlash) {
|
if (flashEnabled && UserAgent.hasFlash && text.length() > 0) {
|
||||||
final String flashVars = "text=" + URL.encodeQueryString(getText());
|
final String flashVars = "text=" + URL.encodeQueryString(getText());
|
||||||
final SafeHtmlBuilder h = new SafeHtmlBuilder();
|
final SafeHtmlBuilder h = new SafeHtmlBuilder();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user