#include "FUiCtrl_Gallery.h"
#include "FUiCtrl_GalleryPresenter.h"
#include "FUiCtrl_GalleryModel.h"
+#include "FUiCtrl_GalleryItem.h"
#include "FUiCtrl_GalleryItemProvider.h"
#include "FUiCtrl_GalleryCoreEvent.h"
#include "FUiCtrl_GalleryCoreEventArg.h"
SysTryReturn(NID_UI_CTRL, __currentItemIndex >= 0, E_INVALID_ARG, E_INVALID_ARG,
"[E_INVALID_ARG] The argument(%d) is negative value.", __currentItemIndex);
+ _GalleryItem* pGalleryItem = __pGalleryModel->GetItem(__currentItemIndex);
+ if (pGalleryItem->GetGalleryItemFilePath() == L"")
+ {
+ return E_SUCCESS;
+ }
+
int currentCanvasIndex = SearchCanvasIndex(__currentItemIndex);
+
FloatRectangle canvasBounds = __galleryRenderer.GetCanvasBounds(currentCanvasIndex);
FloatRectangle imageBounds = __galleryRenderer.GetCanvasImageBounds(currentCanvasIndex);
FloatRectangle viewBounds = __galleryRenderer.GetViewRect();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, true, r, "[%s] Propagating.", GetErrorMessage(r));
//__zoomMode = false;
}
-
- r = AlignCanvas();
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ else
+ {
+ r = AlignCanvas();
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ }
__pinchInitialArea = 0;
__startPinchCenterPosition.SetPosition(0.0, 0.0);
__pinchMode = false;
__pinchInitialArea = 0;
__pinchMode = false;
__flickingDirection = FLICK_DIRECTION_NONE;
+ __zoomMode = false;
return true;
}