--- a/psln/Src/PslnMainViewContainer.cpp Wed Mar 31 21:59:52 2010 +0300
+++ b/psln/Src/PslnMainViewContainer.cpp Wed Apr 14 16:14:00 2010 +0300
@@ -239,13 +239,20 @@
CleanupStack::PushL( item );
reallocItem = NULL; // do not use anymore.
TPtr ptr = item->Des();
+
+ TInt wallpaperOffset = 0;
+ if ( aIndex == KPslnScreenSaverId
+ && !iPslnUi->ViewSupport().IsSet( CPslnUi::EPslnWallpaperView ) )
+ {
+ wallpaperOffset = 1;
+ }
if ( aOffset != KErrNotFound )
{
- iItemArray->InsertL( aIndex + aOffset, ptr );
+ iItemArray->InsertL( aIndex + aOffset - wallpaperOffset, ptr );
}
else
{
- iItemArray->InsertL( aIndex, ptr );
+ iItemArray->InsertL( aIndex - wallpaperOffset, ptr );
}
CleanupStack::PopAndDestroy( item );
PSLN_TRACE_DEBUG("CPslnMainViewContainer::MakeItemL END");