diff --git a/src/Gui/Icons/LinkOverlay.xpm b/src/Gui/Icons/LinkOverlay.xpm
deleted file mode 100644
index a6d00724fa..0000000000
--- a/src/Gui/Icons/LinkOverlay.xpm
+++ /dev/null
@@ -1,13 +0,0 @@
-/* XPM */
-const char *xpm_link[] = {
-"6 6 3 1",
-" c None",
-"# c #000000",
-"a c #ffffff",
-"######",
-"aaaaa#",
-"##aaa#",
-"#aa#a#",
-"aa##a#",
-"##..##"};
-
diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc
index ebc3a8d345..ef055822d4 100644
--- a/src/Gui/Icons/resource.qrc
+++ b/src/Gui/Icons/resource.qrc
@@ -270,7 +270,6 @@
LinkArrayOverlay.svg
LinkSubOverlay.svg
LinkSubElement.svg
- LinkOverlay.xpm
LinkArrayOverlay.xpm
LinkSubOverlay.xpm
LinkSubElement.xpm
diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp
index 01d39314ff..5c1a6dc6a7 100644
--- a/src/Gui/Tree.cpp
+++ b/src/Gui/Tree.cpp
@@ -5417,9 +5417,10 @@ void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2
if (currentStatus & Status::External) {
static QPixmap pxExternal;
+ int px = 12 * getMainWindow()->devicePixelRatioF();
if (pxExternal.isNull()) {
pxExternal = Gui::BitmapFactory().pixmapFromSvg("LinkOverlay",
- QSize(24, 24));
+ QSize(px, px));
}
pxOff = BitmapFactory().merge(pxOff, pxExternal, BitmapFactoryInst::BottomRight);
pxOn = BitmapFactory().merge(pxOn, pxExternal, BitmapFactoryInst::BottomRight);