Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
772985d3
Commit
772985d3
authored
Apr 28, 2003
by
ipkiss
Browse files
* ./modules/gui/skins/src/banks.cpp: fixed a segfault triggered by
missing tags in the XML.
parent
2396f46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins/src/banks.cpp
View file @
772985d3
/*****************************************************************************
* banks.cpp: Bitmap bank, Event
,
bank, Font bank and OffSet bank
* banks.cpp: Bitmap bank, Event bank, Font bank and OffSet bank
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: banks.cpp,v 1.
5
2003/04/2
1
2
2:12:37 asmax
Exp $
* $Id: banks.cpp,v 1.
6
2003/04/2
8
2
0:46:41 ipkiss
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -78,6 +78,7 @@ Bitmap * BitmapBank::Get( string Id )
{
msg_Warn
(
p_intf
,
"Unknown bitmap name '%s', using default one"
,
Id
.
c_str
()
);
Bank
.
erase
(
Id
);
return
Bank
[
DEFAULT_BITMAP_NAME
];
}
...
...
@@ -127,6 +128,7 @@ SkinFont * FontBank::Get( string Id )
{
msg_Warn
(
p_intf
,
"Unknown font name '%s', using default one"
,
Id
.
c_str
()
);
Bank
.
erase
(
Id
);
return
Bank
[
DEFAULT_FONT_NAME
];
}
...
...
@@ -218,11 +220,12 @@ void EventBank::TestShortcut( int key, int mod )
//---------------------------------------------------------------------------
Event
*
EventBank
::
Get
(
string
Id
)
{
// If the specified
fo
nt doesn't exist, use the default one
// If the specified
eve
nt doesn't exist, use the default one
if
(
Bank
[
Id
]
==
NULL
)
{
msg_Warn
(
p_intf
,
"Unknown event name '%s', using default one"
,
Id
.
c_str
()
);
Bank
.
erase
(
Id
);
return
Bank
[
DEFAULT_EVENT_NAME
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment