Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.WebControls/Image.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.WebControls/Image.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs b/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs
index dd2cb5cb8ac..4b66b964ed3 100644
--- a/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs
+++ b/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs
@@ -225,9 +225,8 @@ namespace System.Web.UI.WebControls {
break;
}
- // if border-with is not specified in style or
- // no style is defined - set image to no border
- if (!ControlStyleCreated || ControlStyle.BorderWidth.IsEmpty) {
+ // if no style is defined default image to no border
+ if (!ControlStyleCreated) {
writer.AddAttribute (HtmlTextWriterAttribute.Border, "0");
}
}