summaryrefslogtreecommitdiff
path: root/platform/android/src/com
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-12-17 15:23:45 +0000
committerRobin Watts <robin.watts@artifex.com>2013-12-17 18:51:57 +0000
commit35fc1addacc6bfad9ab52f125ba7079f651855a8 (patch)
treed28b4fad830cd2cb387d5bda33c8a075c504c555 /platform/android/src/com
parentb362eb775e6af4c318ffa1985069b3757c284996 (diff)
downloadmupdf-35fc1addacc6bfad9ab52f125ba7079f651855a8.tar.xz
Bug 694831: Check width and height of bitmap, not width and width
Thanks to Dale King for reporting this.
Diffstat (limited to 'platform/android/src/com')
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java
index 6ed10fe4..36c17a97 100644
--- a/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java
+++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFPageAdapter.java
@@ -37,7 +37,7 @@ public class MuPDFPageAdapter extends BaseAdapter {
public View getView(final int position, View convertView, ViewGroup parent) {
final MuPDFPageView pageView;
if (convertView == null) {
- if (mSharedHqBm == null || mSharedHqBm.getWidth() != parent.getWidth() || mSharedHqBm.getWidth() != parent.getWidth())
+ if (mSharedHqBm == null || mSharedHqBm.getWidth() != parent.getWidth() || mSharedHqBm.getHeight() != parent.getHeight())
mSharedHqBm = Bitmap.createBitmap(parent.getWidth(), parent.getHeight(), Bitmap.Config.ARGB_8888);
pageView = new MuPDFPageView(mContext, mFilePickerSupport, mCore, new Point(parent.getWidth(), parent.getHeight()), mSharedHqBm);