I don't know why, but when starting Tracker there is no root layer here

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14717 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2005-11-05 21:24:51 +00:00
parent 3ef41e42cd
commit 4b1aabf67e
+4
View File
@@ -126,6 +126,10 @@ WinBorder::WinBorder(const BRect &frame,
uint16 width, height;
uint32 colorSpace;
float frequency;
if (GetRootLayer() == NULL)
debugger("WinBorder: no root layer");
if (GetRootLayer()->GetDesktop() == NULL)
debugger("WinBorder: no desktop");
if (GetRootLayer()->GetDesktop()->ScreenAt(0)) {
GetRootLayer()->GetDesktop()->ScreenAt(0)->GetMode(width, height, colorSpace, frequency);
_ResizeBy(width - frame.Width(), height - frame.Height());