From 364af4f5748556acef8a71742fe1b17062a6bb46 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sun, 11 Jul 2010 04:36:05 +0000 Subject: Theme Editor: Fixed rendering behavior of default viewport. Now when other viewports are present in the skin, only _text_ from the default viewport is not rendered git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27378 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbviewport.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/themeeditor/graphics/rbviewport.h') diff --git a/utils/themeeditor/graphics/rbviewport.h b/utils/themeeditor/graphics/rbviewport.h index a9b706d95f..c665108618 100644 --- a/utils/themeeditor/graphics/rbviewport.h +++ b/utils/themeeditor/graphics/rbviewport.h @@ -64,6 +64,8 @@ public: void addTextOffset(int height){ textOffset.setY(textOffset.y() + height); } void flushText() { + if(textOffset.x() < 0) + return; alignLeft(); alignRight(); alignCenter(); -- cgit