diff --git a/Laptop/BobbyRShipments.cpp b/Laptop/BobbyRShipments.cpp index ddc51a49..3ba6d75d 100644 --- a/Laptop/BobbyRShipments.cpp +++ b/Laptop/BobbyRShipments.cpp @@ -47,6 +47,7 @@ #define BOBBYR_SHIPMENT_HOME_BUTTON_Y BOBBYR_SHIPMENT_BACK_BUTTON_Y #define BOBBYR_SHIPMENT_NUM_PREVIOUS_SHIPMENTS 13 +#define MAX_SHIPMENTS_THAT_FIT_ON_SCREEN 13 @@ -155,8 +156,15 @@ BOOLEAN EnterBobbyRShipments() { INT32 iCnt; + // WDS - If there are more than 13 shipments only show 13 because + // that is all that will fit on the screen. If you show more things + // get corrupted. + INT32 max = giNumberOfNewBobbyRShipment; + if (max > MAX_SHIPMENTS_THAT_FIT_ON_SCREEN) + max = MAX_SHIPMENTS_THAT_FIT_ON_SCREEN; + //get the first shipment # - for( iCnt=0; iCnt MAX_SHIPMENTS_THAT_FIT_ON_SCREEN) + max = MAX_SHIPMENTS_THAT_FIT_ON_SCREEN; + + for( uiCnt=0; uiCnt