Improve content widgets
[lgpl/argeo-commons.git] / swt / org.argeo.cms.swt / src / org / argeo / cms / swt / acr / Img.java
index eb52fc6a37904ad00ed20e193d241559da714edd..a5d22bca1b2fe5dde04b5ed48adcd5c27b6323a4 100644 (file)
@@ -44,8 +44,7 @@ public class Img extends EditableImage implements SwtSectionPart, ContentPart {
                        CmsImageManager<Control, Content> imageManager) {
                super(parent, swtStyle, preferredImageSize);
                this.section = section;
-               this.imageManager = imageManager != null ? imageManager
-                               : (CmsImageManager<Control, Content>) CmsSwtUtils.getCmsView(section).getImageManager();
+               this.imageManager = imageManager != null ? imageManager : CmsSwtUtils.getCmsView(section).getImageManager();
 //             CmsSwtUtils.style(this, TextStyles.TEXT_IMG);
                setData(imgNode);
        }