mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 04:44:16 +01:00
Fixed uninitialized pointer in wtext.c
This commit is contained in:
@@ -3101,14 +3101,14 @@ WMCreateTextForDocumentType(WMWidget *parent, WMAction *parser, WMAction *writer
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dpy = tPtr->view->screen->display;
|
||||||
|
scr = tPtr->view->screen;
|
||||||
|
|
||||||
tPtr->view->self = tPtr;
|
tPtr->view->self = tPtr;
|
||||||
tPtr->view->attribs.cursor = scr->textCursor;
|
tPtr->view->attribs.cursor = scr->textCursor;
|
||||||
tPtr->view->attribFlags |= CWOverrideRedirect | CWCursor;
|
tPtr->view->attribFlags |= CWOverrideRedirect | CWCursor;
|
||||||
W_ResizeView(tPtr->view, 250, 200);
|
W_ResizeView(tPtr->view, 250, 200);
|
||||||
|
|
||||||
dpy = tPtr->view->screen->display;
|
|
||||||
scr = tPtr->view->screen;
|
|
||||||
|
|
||||||
tPtr->dColor = WMWhiteColor(scr);
|
tPtr->dColor = WMWhiteColor(scr);
|
||||||
tPtr->bgGC = WMColorGC(tPtr->dColor);
|
tPtr->bgGC = WMColorGC(tPtr->dColor);
|
||||||
W_SetViewBackgroundColor(tPtr->view, tPtr->dColor);
|
W_SetViewBackgroundColor(tPtr->view, tPtr->dColor);
|
||||||
|
|||||||
Reference in New Issue
Block a user