Skip to:
Content

BuddyPress.org

Ticket #6479: 6479.patch

File 6479.patch, 572 bytes (added by imath, 10 years ago)
  • src/bp-core/js/avatar.js

    diff --git src/bp-core/js/avatar.js src/bp-core/js/avatar.js
    index bb032c1..dc887a7 100644
    window.bp = window.bp || {}; 
    530530                                selection = {}, crop_top, crop_bottom, crop_left, crop_right, nh, nw;
    531531
    532532                        if ( ! _.isUndefined( this.options.full_h ) && ! _.isUndefined( this.options.full_w ) ) {
    533                                 this.options.aspectRatio = this.options.full_h / this.options.full_w;
     533                                this.options.aspectRatio = this.options.full_w / this.options.full_h;
    534534                        }
    535535
    536536                        selection.w = this.model.get( 'width' );