Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
Rekonq
Commits
5765a34a
Commit
5765a34a
authored
Mar 02, 2011
by
Cedric Bellegarde
Browse files
Check for empty pixmap, this prevent us drawing an empty area.
BUG:267312
parent
7a08e4d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tabhighlighteffect.cpp
View file @
5765a34a
...
...
@@ -47,7 +47,12 @@ TabHighlightEffect::TabHighlightEffect(TabBar *tabBar)
void
TabHighlightEffect
::
draw
(
QPainter
*
painter
)
{
painter
->
drawPixmap
(
QPoint
(
0
,
0
),
sourcePixmap
());
const
QPixmap
&
pixmap
=
sourcePixmap
();
if
(
pixmap
.
isNull
())
return
;
painter
->
drawPixmap
(
QPoint
(
0
,
0
),
pixmap
);
Q_FOREACH
(
const
QByteArray
&
propertyName
,
dynamicPropertyNames
())
{
...
...
Write
Preview
Supports
Markdown
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