summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--displayreplay.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/displayreplay.c b/displayreplay.c
index d7f7045..79135dc 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -299,9 +299,6 @@ void cNopacityDisplayReplay::SetRecording(const cRecording *Recording) {
if (!recName) {
recName = Recording->Name();
}
- if (!recName) {
- recName = *Recording->BaseName();
- }
SetTitle(recName);
cString info2;
if (RecordingInfo->ShortText())
@@ -323,6 +320,8 @@ void cNopacityDisplayReplay::SetRecording(const cRecording *Recording) {
void cNopacityDisplayReplay::SetTitle(const char *Title) {
pixmapInfo->Fill(clrTransparent);
+ if (!Title)
+ return;
int titleLength = fontManager->replayHeader->Width(Title);
int titleSpace = geoManager->replayInfoWidth - geoManager->replayHeaderHeight/2;
std::string strTitle = Title;