console copy text was upside down.
[blender-staging.git] / source / blender / editors / space_console / console_ops.c
index 70570f6208a468082a3c78d352afc2c035112d84..37f16f3d88a25343812098c0e8c9ae3d7e21a8e6 100644 (file)
@@ -563,7 +563,7 @@ static int copy_exec(bContext *C, wmOperator *op)
        
        ConsoleLine *cl;
        
-       for(cl= sc->scrollback.last; cl; cl= cl->prev) {
+       for(cl= sc->scrollback.first; cl; cl= cl->next) {
                BLI_dynstr_append(buf_dyn, cl->line);
                BLI_dynstr_append(buf_dyn, "\n");
        }