diff --git a/mythtv/libs/libmythui/mythuieditbar.cpp b/mythtv/libs/libmythui/mythuieditbar.cpp
index 5af0ebf..73bc6cb 100644
a
|
b
|
void MythUIEditBar::AddBar(MythUIShape *shape, MythUIImage *image, |
188 | 188 | MythUIShape *shape = dynamic_cast<MythUIShape*>(add); |
189 | 189 | MythUIImage *image = dynamic_cast<MythUIImage*>(add); |
190 | 190 | if (shape) |
191 | | shape->SetCropRect(area.left(), 0, area.width(), area.height()); |
| 191 | shape->SetCropRect(area.left(), area.top(), area.width(), area.height()); |
192 | 192 | if (image) |
193 | | image->SetCropRect(area.left(), 0, area.width(), area.height()); |
| 193 | image->SetCropRect(area.left(), area.top(), area.width(), area.height()); |
194 | 194 | add->SetPosition(area.left(), area.top()); |
195 | 195 | } |
196 | 196 | } |
diff --git a/mythtv/libs/libmythui/mythuishape.cpp b/mythtv/libs/libmythui/mythuishape.cpp
index 673648c..ac8cb29 100644
a
|
b
|
void MythUIShape::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
56 | 56 | int alphaMod, QRect clipRect) |
57 | 57 | { |
58 | 58 | QRect area = GetArea(); |
| 59 | m_cropRect.CalculateArea(area); |
| 60 | if (!m_cropRect.isEmpty()) |
| 61 | area &= m_cropRect.toQRect(); |
59 | 62 | area.translate(xoffset, yoffset); |
60 | 63 | |
61 | 64 | if (m_type == "box") |